There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d41bb3ad-91d4-408e-badd-0a4ab2cc3f7e XWIKI-23385 Open

PDF export fails when a page has a lot of text.

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-c156f115-8df4-4c5c-841a-790eb62583b7 Marius Dumitru Florea on 28/Aug/25 17:52
 

Farcasi Alexandru-Vicentiu the PDF export works fine with large text. Here's an example wiki page Sandbox.LongText.xarlink_attachment_7.gif based on 183KB of text long.txtlink_attachment_7.gif , more than in your example, which produces this PDF export LongText.pdflink_attachment_7.gif that has everything in it.

The example you provided is a bit special / fabricated because:

  • it has a single long paragraph with many line breaks that produce a ton of BRs tags
  • the same content is repeated multiple times

Unfortunately this kind of fabricated content is not handled well by paged.js, the library we use to split the content into print pages. It throws this exception:

Layout repeated at:  "amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et"
layout @ paged.polyfill.js?r=1:3097

This issue has been reported already as XWIKI-20298 , so I consider it to be a duplicate. I suppose you can't provide the original content, so you should check:

  • why is your original content having so much BRs, which is uncommon (even bad practice)
  • why does your original content have big chunks of repeated / duplicated sections, which again is uncommon