Page 1 of 1

Improper output while converting to PDF

PostPosted: Fri Sep 20, 2013 3:27 pm
by sunny8875
Hi,
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

Thanks

Re: Improper output while converting to PDF

PostPosted: Fri Sep 20, 2013 4:20 pm
by jason
The output is different because the online demo webapp is using a development snapshot of a month or so ago, versus 2.8.1 which you are using.

Re: Improper output while converting to PDF

PostPosted: Fri Sep 20, 2013 4:43 pm
by sunny8875
Hi Jason,
Thanks very much for your quick reply, I can use only resources available through maven central. So when can we expect a next latest stable release to maven central. I see you have already mentioned in the below posts for a next release

docx-java-f6/version-3-0-t1637.html
xhtml-import-f28/docx4j-new-release-to-maven-central-t1649.html#p5518

Is there any possible date for the stable release?

Thanks

Re: Improper output while converting to PDF

PostPosted: Fri Sep 20, 2013 7:53 pm
by jason
Allowing for the beta, plan on a month, or to be safer, 6 weeks.

Getting 3.0 out is now my top priority.