Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

pdf page view prints each page on two sheets in WKWebView

Aperta
#1,280 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, html, ios
Ambito
frontend, web-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
41
Fork
10
Merge medio
10h 30m
PR unite (30g)
342

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opendocument-app/OpenDocument.core

Tutte le issue di opendocument-app/OpenDocument.core

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.