Page 1 of 1

Converting Docx to PDF

PostPosted: Sat Jul 18, 2009 10:30 pm
by yigit.darcin
Hello all,

firstly docx4j is a very nice lib, infact only lib to make docx -> pdf conversion afaik.

I want to convert docx to pdf, but the example that I find in the forum or in the project page is not exactly telling which docx4j version ( 2.0,2.1 .. ) is usd to convert with that example codes.

as 2.0 is not in maven, I am looking at http://dev.plutext.org/docx4j/ and http://dev.plutext.org/docx4j/archive/d ... 0.0.tar.gz for 2.0
and for 2.1 I am using maven,

but I couldn't work a single example,

can you give me an example for docx > pdf covert that will work with 2.1 that I download with maven.

Thanks and keep up the good work,

Yigit.

Re: Converting Docx to PDF

PostPosted: Sun Jul 19, 2009 9:18 am
by jason
That 2.1.0 mavenized release is 8 months old.

If you can use current svn or the non-mavenized http://dev.plutext.org/docx4j/docx4j-ni ... 528.tar.gz
I'd highly recommend you do so.

I will set about creating a new nightly build today (and upload it when I get a chance, but I'm travelling right now); possibly also a mavenized version.

With current svn or docx4j-nightly-20090528, you will be able to create a PDF the old way (ie via HTML, using Microsoft's XSLT), or the new ways (via XSL FO, or iText) as shown in http://dev.plutext.org/trac/docx4j/brow ... tePdf.java

cheers .. Jason

Re: Converting Docx to PDF

PostPosted: Sun Jul 19, 2009 10:37 am
by yigit.darcin
Hi Jason,

thanks for the quick reply.

I am using maven in the project so it will be great if you can put a nightly build in maven repo for me as I will not fight with dependencies :)

By the way docx4j will be used in one of the biggest bank in Turkey, so you can be proud of yourselves ;)

I am waiting for your reply today for the link of mavenized nightly build.

Thanks again

Yigit.

Re: Converting Docx to PDF

PostPosted: Sun Jul 19, 2009 11:00 pm
by yigit.darcin
Hi Jason,

any news on snapshot in the maven repo?

Thanks,

Yigit.

Re: Converting Docx to PDF

PostPosted: Sat Jul 25, 2009 12:04 pm
by jason
Sorry, I haven't had an internet connection this week (and this one is transient).
I will try to do this this weekend (connections willing).

Re: Converting Docx to PDF

PostPosted: Sat Jul 25, 2009 12:17 pm
by yigit.darcin
Ok Jason,

thanks for the info.

docx4j v2.2.0 in Maven

PostPosted: Tue Jul 28, 2009 2:50 pm
by jason
Hi Yigit

I've uploaded what I'm calling v2.2.0 to Maven.

There have been some minor changes to interfaces, so there is an argument for calling it v3, but it doesn't contain everything envisaged for v3.0.

Maven needs a version number, so 2.2.0 it is.

cheers

Jason

Re: Converting Docx to PDF

PostPosted: Tue Jul 28, 2009 2:56 pm
by yigit.darcin
Hi Jason,

thanks for the jar,

Cheers,

Yigit