HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › PD4ML Tips & Tricks › how to show background image in full size of page › Re: Re: how to show background image in full size of page
April 4, 2017 at 16:34
#30012
You may define a page background with the API call:
[language=java:x8menc5o]PD4PageMark footer = new PD4PageMark();
// footer.setPageBackgroundColor(Color.green);
footer.setPageBackgroundImageUrl(“file:i/background.jpeg”);
pd4ml.setPageFooter(footer); // or setPageHeader() – both methods are ok[/language:x8menc5o]