Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

pdf page view prints each page on two sheets in WKWebView

Đang mở
#1,280 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, html, ios
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

Start by tracing how the PDF page view's print CSS is produced for WebKit, then inspect the @page size and margins, .p height, and break-after behavior mentioned in the issue. Reproduce printing a 38-page PDF through WKWebView with A4 paper and check which page dimensions cause the extra sheets. Done means each PDF page prints on one sheet without an empty sheet after it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Found by the iOS session (opendocument-app/OpenDocument.ios#219). 7.5.2 does the same, so this is older than 7.6.0.

Repro: print a pdf page view from WKWebView (viewPrintFormatter, A4). A 38-page pdf gives 76 sheets, and every second sheet is empty.

Guess, not checked: the page box is one A4 high plus something (a margin, a border, or a rounding), so each page overflows onto a new sheet. The CSS of the page for print should be checked in WebKit: the @page size and margins, the height of .p in print, and break-after.

Ngôn ngữ chính
C++
Star
41
Fork
10
Merge trung bình
10 giờ 30 phút
Pull request đã merge (30 ngày)
342

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opendocument-app/OpenDocument.core

Tất cả issue của opendocument-app/OpenDocument.core

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.