You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multi-page PDFs cause page errors in Adobe Reader, when created with .html() #3428
I have read and understood the contribution guidelines.
When creating a PDF document via .html() with autoPaging enabled, Adobe Reader reports errors from the second page onward (jsPDF 2.5.1 / html2canvas 1.4.1).
The issue does not occur in PDF viewers in Chrome or Firefox. I´ve created a CodePen that reproduces this issue.
I also found a workaround: If I know the number of pages that the autoPaging will generate with .html(), I add those pages manually beforehand - this will result in a PDF file that works in Adobe Reader without issue. CodePen with workaround.
Because of this, I assume that autoPaging in .html() does not properly manage pages, which triggers the error.
I am also rendering a multi-page PDF and am also experiencing this issue but due to images. When images are removed then the error goes away. I have tried multiple image formats.
Activity
JasmeenTechnocomet commentedon Jul 23, 2022
I had the same problem @r3-gabriel did you find any solution?
r3-gabriel commentedon Jul 23, 2022
I have not had more time to investigate - the descriped workaround worked good enough to address the issue in the short term.
To clarify how the workaround is implemented:
Because the workaround fixes the issue, I assume that .html() does not register pages correctly when more than 1 is generated.
riquems commentedon Sep 1, 2022
Same problem here, thanks for the workaround @r3-gabriel. Hope this gets fixed...
github-actions commentedon Dec 1, 2022
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
r3-gabriel commentedon Dec 1, 2022
Bump, still relevant.
github-actions commentedon Mar 2, 2023
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
r3-gabriel commentedon Mar 2, 2023
Bump, still relevant.
ruanpetersen commentedon Mar 6, 2023
I am also rendering a multi-page PDF and am also experiencing this issue but due to images. When images are removed then the error goes away. I have tried multiple image formats.
hansdoug commentedon Apr 13, 2023
@r3-gabriel wow, thank you for the workaround, you just saved my day.
github-actions commentedon Jul 13, 2023
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
40 remaining items
febkosq8 commentedon Jan 1, 2026
Still relevant.
github-actions commentedon Apr 2, 2026
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
r3-gabriel commentedon Apr 2, 2026
Still relevant.
github-actions commentedon Jul 2, 2026
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
r3-gabriel commentedon Jul 2, 2026
Still relevant.
github-actions commentedon Oct 2, 2026
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.
r3-gabriel commentedon Oct 2, 2026
Still relevant.
Yash9S commentedon Oct 7, 2026
I am facing the same issue. Isn't the issue resolved yet? can you please help me regarding this?