#28977

Hi,
Thanks for your help.
I tried this , but it is not working for some reason
here is my code
java.io.FileOutputStream fos = new java.io.FileOutputStream(outputPDFFile);
PD4ML pd4ml = new PD4ML();
pd4ml.setPageInsets(new Insets(0, 0, 0, 0));
pd4ml.setHtmlWidth(950);
pd4ml.setPageSize(pd4ml.changePageOrientation(format)); // landscape page orientation
pd4ml.setPageSize(format); // portrait page orientation
pd4ml.useTTF(“java:fonts”, true);
pd4ml.setDefaultTTFs(“Times New Roman”, “Arial”, “Courier New”);
if ( headerBody != null && headerBody.length() > 0 ) {
PD4PageMark header = new PD4PageMark();
header.setAreaHeight( -1 ); // autocompute
header.setHtmlTemplate( headerBody ); // autocompute
pd4ml.setPageHeader( header );
}
pd4ml.enableDebugInfo();
pd4ml.render(“file:” + inputHTMLFileName, fos);
if(fos!=null){
outputPDFFile = null;
fos.close();
}

Please suggest me any other solution.
Thanks