PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues Inconsistent spacing between header and first line of page?

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

    I’m using a very simple test with a header and footer defined, and a bunch of text content spanning multiple pages, and I noticed that the space between the header and the first line of content varies from page to page.

    Here’s my test html:

    Header Text Footer Text Here is some repeating content Here is some repeating content Here is some repeating content Here is some repeating content….[clipped for forum posting]

    I’ve attached the pdf output. Notice how the spacing is different on all 3 pages. Is there a way to make the spacing consistent?

    #28349

    The gap on the first page is caused by margin.

    With you may inspect actual document content edges. The margins could be suppressed by corresponding tag attributes or by CSS properties.

    The minor differences on the subsequent pages depend on implicit page break position. PD4ML tries to shift the position to avoid text line from being split. That gives some minor fluctuations, I guess.

    #28350

    Thanks for the reply. Setting the margins to 0px addressed the issue.

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

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