test.zip (159.4 KB)
I am having a problem on both Linux servers and my Windows machine. It is converting to the incorrect times new roman. The font is install because Microsoft office can convert it to PDF perfectly. I am using the following code.
public String convert(String input) throws Exception {
// Args contain the file
Document doc = new Document(input);
//Update the page layout and TOC
doc.updateFields();
doc.updatePageLayout();
String out_fname = this.mktemppdf();
doc.save(out_fname);
return out_fname;
}
}
Any help would be appreciated. Also it doesn’t not to any font substitution of fallback during the conversion.
Thanks