Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #26714

    The attached example zip contains a header.html, footer.html, body.html and the generated pdf file.

    In the PDF file an additional blank first and blank last page is generated.

    Is it my html/CSS code that is causing this or is it something else?

    Your helps is highly appreciated.

    #28980

    Most probably the issue is caused by enableSmartTableBreak() mode clashes with CSS page break control code in your document. Try to disable smart table breaks – does it change anything?

    FYI: enableSmartTableBreak(true) applies

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

    In the mode it implicitly inserts a page break before a table, if it helps to keep the table not broken. It looks like that happens in your case. By default the first page has a bit smaller content area height than the second one, as the first page respects top margin of tag.

    #28981

    Looks like enableSmartTableBreak(false) solved the problem! Many thanks!!!

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

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.