Embedding a true type font has not worked with the pro version
Source urls for each page:
http://mesoderm-ext.cambrient.com/sat/c ... oid=203894http://mesoderm-ext.cambrient.com/sat/c ... oid=203894http://mesoderm-ext.cambrient.com/sat/c ... -ebrochurehttp://mesoderm-ext.cambrient.com/sat/c ... -ebrochurehttp://mesoderm-ext.cambrient.com/sat/c ... -ebrochurehttp://mesoderm-ext.cambrient.com/sat/c ... -ebrochurehttp://mesoderm-ext.cambrient.com/sat/c ... -ebrochurehttp://mesoderm-ext.cambrient.com/sat/c ... -ebrochuresource code:
private void generatePdf(String outputFileDir, String outputFileName,
URL[] urls) throws IOException {
File file = new File(outputFileDir + outputFileName);
FileOutputStream pdfOut = new FileOutputStream(file);
PD4ML pd4ml = new PD4ML();
pd4ml.setPageSize(PD4Constants.A4);
pd4ml.setPageInsets(new Insets(0, 0, 0, 0));
pd4ml.setHtmlWidth(1000);
PD4PageMark footer = new PD4PageMark();
footer.setPagesToSkip(2);
footer.setAreaHeight( 50 );
footer.setHtmlTemplate("<b>Footer test</b><br>" + "${page} of
${total}" );
pd4ml.setPageFooter( footer );
pd4ml.useTTF( "java:fonts", true );
pd4ml.setDefaultTTFs("Trebuchet MS","Tahoma","Arial");
pd4ml.render(urls, pdfOut);
pdfOut.close();
}
attached are the true type fonts and the
pd4fonts.properties file from the jre/lib/fonts folder
Java version: 1.6.0
PD4ML version: pd4ml.prof.360fx1.zip
Operating system: Ubuntu 8.04
the pdf generated is here
http://mesoderm-ext.cambrient.com/sat/a ... 505131.pdfThe second problem is the footer html source is not displaying and the 2 pages are not skipped.