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

    I have a problem. The generated PDFs have header and footers that fill 100% of the page width while the body only fills 100%.

    I have tried using the setHtmlWidth( 800 ) then also right after that the adjustHtmlWidth() but to no effect. I assume that the two should be used together.

    I removed my file entirely and verified that it’s gone but it has no effect.

    Any idea what could cause this problem?

    Thank you!


    You need to decrease parameter value of setHtmlWidth() to match HTML document content width.

    adjustHtmlWidth() is intended to automatically decrease the value. (in other words to cut blank space right side) But if your document has elements with width=100% attributes (or for example

    elements), that would mean there is no blank space – nothing to cut.

    I assume you did not call fitPageVertically()


    Thank you kindly for the reply. You are correct, I did not call “fit page vertically”. I will follow up with your advice.

    Thank you!

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

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