I am trying to convert a docx file to PDF. The PDF output that is generated from webapp tool from link http://webapp.docx4java.org/OnlineDemo/ ... f_fop.html is different from the one that is generated programatically using the below code
- Code: Select all
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(inputFilePath));
org.docx4j.convert.out.pdf.PdfConversion c = new org.docx4j.convert.out.pdf.viaXSLFO.Conversion(wordMLPackage);
OutputStream os = new java.io.FileOutputStream(outputFilePath);
c.output(os, new PdfSettings() );
Why is the output different for the same docx file, Is there any specific code I am missing while converting to PDF, Please help me out on this.
NOTE: I am using docx4j 2.8.1