Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #26866


    I have a configuration question/issue that I was curious if you could help me out with. I’m currently looking at the latest version of PD4ML 3.85 and experimenting with table breaks.

    In the attached PDF on pages 12 – 13, if a table is small enough to fit on the next page, but not big enough to fit on the current page then PD4ML moves the entire table to the next page. This leaves a huge blank area sometimes more than half a page long.

    Why is this? Maybe its a configuration setting. I currently am using enableSmartTableBreaks and have TR, TABLE {page-break-inside: avoid;} in my HTML CSS. Is there any settings I could adjust?

    I’ve tried turning off Smart Table Breaks, but then it splits right in the middle of rows/cells and looks very ugly.

    I’m using the Java version. Here is my configuration on the Java Side:
    PD4ML html = new PD4ML();
    html.setPageInsets(new Insets(25,25,25,25));

    Where it is correct
    You will notice on pages 4-6 if a table is to large to fit on the next page alone then it moves the entire table up to where it should be a breaks it appropriately.

    Finally, on page 9, if the table can fit on the proper page then it is placed appropriately as well.

    Thank for all the help anyone can offer.



    Any thoughts on what could be happening here?

    I’ve been instructed by my higher ups to find a fix for this issue or start looking for another application to generate our PDFs. We are just getting too many questions from our customers asking why there is all the blank space and their table is on the next page.



    html.enableSmartTableBreaks(true) implicitly defines

    TABLE, TR {page-break-inside: avoid}

    CSS style. Obviously to resolve the issue you would need either disable the smart table break mode or to define an extra CSS style (i.e. with html.addStyle())

    TABLE {page-break-inside: auto !important}


    Thanks so much for the reply. This worked! Back to very happy with PD4ML! This was the only issue we were having, everything else works wonderfully. Great product!

Viewing 4 posts - 1 through 4 (of 4 total)

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