HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Additional wrong page breaks › Re: Re: Additional wrong page breaks
April 23, 2012 at 19:00
#28980
Most probably the issue is caused by enableSmartTableBreak() mode clashes with CSS page break control code in your document. Try to disable smart table breaks – does it change anything?
FYI: enableSmartTableBreak(true) applies
TR, TABLE { page-break-inside: avoid }
In the mode it implicitly inserts a page break before a table, if it helps to keep the table not broken. It looks like that happens in your case. By default the first page has a bit smaller content area height than the second one, as the first page respects top margin of
tag.