Hello
I am writing a Java application which should convert a DOCX to a PDF file. Unfortunately, the output file ignores certain formats from the docx-file such as:
1. centered header image (jpg), output is left aligned
2. columns from docx are ignored, pdf writes text underneath
I am using these lines of code for conversion:
File pdffile = new File(temp+"/_"+FilenameUtils.removeExtension(file.getName())+".pdf");
OutputStream os = null;
WordprocessingMLPackage document = WordprocessingMLPackage.load(file);
Mapper fontMapper = new IdentityPlusMapper();
document.setFontMapper(fontMapper); ...