HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Issues with position:relative › Re: Re: Issues with position:relative
The forthcoming PD4ML release fixes the issue #1 (overflow: hidden).
Unfortunately the second issue cannot be fixed with the current PD4ML architecture.
Layouts with absolute positioning + page breaks are still handled differently by different browsers in print mode – there is no common practice, accepted by every web browser vendor (as far as I know).
Some of them print absolutely positioned elements on the first page only. Some of them respect page breaks in absolute positioning coordinates, some (and PD4ML) do not. In absolute positioning model PD4ML interprets a sequence of PDF pages as a continuous space without page breaks.
The visual defects of the resulting PDF layout are caused by an attempt to combine elements, belong to different positioning schema.
I could only recommend to redesign the layout and to avoid absolutely positioned elements there.