Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26310

    I am trying to make a pdf from jsp page, that contains a table. The code for PD4ML i use is

    and

    The problem is that in some amounts of lines in table. I get one more page than necessary and this page is free of content except the header. I don’t know hot to get rid of it?
    The look of it is in added picture.
    If you need more info, ask and I will try to give it.
    Doeys anyone have any propositions?

    #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”)
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions / FAQ’ is closed to new topics and replies.