Hi,
We find the position of footnote on the first page has been changed when convert to PDF from docx.
Tha attached is the original docx file and the converted PDF.
EN-9-19.docx (290.9 KB)
EN-9-19.pdf (716.6 KB)
Our code:
com.aspose.words.Document doc;
try {
File file1 = new File(pdfPath + "\\EN-9-19.docx");
String path = pdfPath + "\\EN-9-19.pdf";
File file = new File(path);
doc = new com.aspose.words.Document(pdfPath + "\\EN-9-19.docx");
com.aspose.words.Document doc1 = new com.aspose.words.Document();
doc1.removeAllChildren();
doc1.appendDocument(doc, ImportFormatMode.KEEP_SOURCE_FORMATTING);
doc1.getCompatibilityOptions().setUseFELayout(true);
doc1.getCompatibilityOptions().setFootnoteLayoutLikeWW8(true);
doc1.getStyles().getDefaultFont().setLocaleIdFarEast(2052);
doc1.updatePageLayout();
PdfSaveOptions options = new PdfSaveOptions();
options.setEmbedFullFonts(true);
doc1.save(path, options);
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
Could you please check it for me?
Thanks and best wish.