HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › CSS of a HTML string rendering problem – Java › Re: Re: CSS of a HTML string rendering problem – Java
thanks for the response. i’ve resolved that problem.
no, i want to add a header and footer to the rendered pdf doc.
for this i’ dooing the following:
private PD4PageMark getPageHeader(String htmlString)
{
String headerBody = “
“;
PD4PageMark header = new PD4PageMark();
header.setAreaHeight( -1 ); // autocompute
header.setHtmlTemplate( headerBody );
return header;
}
In my html document, in the CSS file i have a stule class which difines the “header” with a background image.
How can i use the same CSS file when adding a header to the pd4ml object?