function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Martin KrchnakMartin Krchnak 

PDF table page break issue

Hi all,

I'm printing long table using apex:repeat and I'm now struggling with the page-break issue. If I remove all page-break properties the result is as on first picture
Without page-break

After I apply page-break-inside:avoid for whole table and page-break-before:avoid for the MVA raw on next page the table rows will overlay and aslo short border line will appear on second page on left side which shouldn't be there:
With page-break

Any suggestions what can I try?
 
Sunil MadanaSunil Madana
Hi Martin, Not sure if you tried the below already.
Include the following attribute -fs-table-paginate: paginate; in tables style tag.
http://salesforce.stackexchange.com/questions/78084/how-to-add-page-breaks-to-visual-force-page-rendered-as-pdf-so-that-a-dynamicall (http://salesforce.stackexchange.com/questions/78084/how-to-add-page-breaks-to-visual-force-page-rendered-as-pdf-so-that-a-dynamicall" target="_blank)
Thanks, Sunil.