HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › CSS div positioning bug › Re: Re: CSS div positioning bug
Unfortunately it did not attach your document to the message. But I guess the document absolute positioning suffers from the explicit page breaks.
Starting with v360fx1b1 PD4ML has 2 absolute positioning modes: document- and page-centric.
You may switch to another mode with
-Dpd4ml.absolute.address.space=document
JVM parameter, PD4ML API call
[language=java:ilwg5xsw]Map m = new HashMap();
m.put(PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, “document”);
pd4ml.setDynamicParams(m);[/language:ilwg5xsw]
or with custom JSP tag, nested to
[language=xml:ilwg5xsw]
As a result you’ll get a document where absolute positioned blocks match relatively positioned blocks. But PD4ML also requires you explicitly define block dimensions.