HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › PDF Body Fills 50% of the page, Header/Footer Fill 100% › Re: Re: PDF Body Fills 50% of the page, Header/Footer Fill 100%
April 2, 2010 at 08:19
#27937
You need to decrease parameter value of setHtmlWidth() to match HTML document content width.
adjustHtmlWidth() is intended to automatically decrease the value. (in other words to cut blank space right side) But if your document has elements with width=100% attributes (or for example
elements), that would mean there is no blank space – nothing to cut.
I assume you did not call fitPageVertically()