#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”)