#27292

Hi

I am evaluating pd4ml. Do headers/footers work with the evaulation version? Here is my code:

File pdf = new File("/tmp/test.pdf");<br /> <br /> PD4ML pd4ml = new PD4ML();<br /> <br /> try (java.io.FileOutputStream fos = new java.io.FileOutputStream(pdf))<br /> {<br /> {<br /> PD4PageMark header = new PD4PageMark();<br /> header.setHtmlTemplate("<font color="red"><i>header $[page] of $[total]</i></font><br>");<br /> header.setAreaHeight(50);<br /> pd4ml.setPageHeader(header);<br /> }<br /> {<br /> PD4PageMark footer = new PD4PageMark();<br /> footer.setHtmlTemplate("<font color="red"><i>footer $[page] of $[total]</i></font><br>");<br /> footer.setAreaHeight(50);<br /> pd4ml.setPageHeader(footer);<br /> }<br /> pd4ml.enableDebugInfo();<br /> pd4ml.render(new StringReader("<html><body>BODY<pd4ml:page.break/>BODY2<pd4ml:page.break/>BODY3</body></html>"), fos);<br /> }

This is the version: version: PD4ML 385 (eval)

The PDF doc has 3 pages, the evaluation version thing is there in the footer but nothing else appears in the header or the footer area. Can you please advise what I am doing wrong?

Thank you,
Jozsef