HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › PD4ML creates one more page than necessary › Re: Re: PD4ML creates one more page than necessary
January 4, 2010 at 14:21
#27758
First, to start the problem reason analyze, try to define BODY { border: 1 solid red } style to see where the real bottom edge of the document content is.
Normally an extra blank page appears because of accumulated bottom margins of block elements etc.
If in your case the reason is clear and cannot be solved (by a removal of the , ,
, bottom margins at the end of the doc) you have two options:
- Downscale the document content to make it fit the page(s) by increasing of htmlWidth (screenWidth in JSP) converting parameter.
- If the resulting number of the document pages is known in advance, you may limit to it by the call pd4ml.outputRange(“1-3”)