HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › PD4ML Tips & Tricks › closed border line in each page › Re: Re: closed border line in each page
May 27, 2015 at 18:34
#29746
(height value is to be adjusted there)
Now I see.
Well, you cannot define the border line with HTML/CSS. But it is possible:
1. to define a page background image with a painted border line and to apply the image to all pages.
PD4PageMark footer = new PD4PageMark();
footer.setPageBackgroundImageUrl("file:./frame.jpeg");
pd4ml.setPageFooter(footer);
2. to create a static PDF page with a border line. It can be done from an HTML like the following:
<body style="margin: 0"> <div style="border: 1 solid black; width: 100%; height: 800"> </div> </body>
(height value is to be adjusted there)
After that you could combine(underlay) the static PDF with your dynamically created PDF document.
