HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › Image as a theme for pdf file › Re: Re: Image as a theme for pdf file
April 3, 2013 at 18:00
#29261
There is an API method intended for that:
PD4PageMark.setPageBackgroundImageUrl(String);
[language=java:3csh4kwr]PD4ML pd4ml = new PD4ML();
…
PD4PageMark mark = new PD4PageMark();
mark.setPageBackgroundImageUrl(“file:images/background.jpeg”);
pd4ml.setPageFooter(mark); // or .setPageHeader(mark)[/language:3csh4kwr]
Make sure HTML document itself does not define an opaque page background.