Page 1 of 1

docx4j - Converting to PDF

PostPosted: Tue Apr 22, 2014 8:32 pm
by Murthy
Hi,
I have been trying to create a docx with Page Numbers,TOC and watermarks in it. Am trying to convert the same to PDF. I was successful in creating the docx file , though, while converting it to the PDF, the content in the docx alone is getting generated as the PDF, where as the Page Numbers,Watermarks and TOC are not present there in the PDF.

Please somebody help me sort out the problem here.
Thank you.

Re: docx4j - Converting to PDF

PostPosted: Tue Apr 22, 2014 9:07 pm
by jason
Page numbers should work.

The watermark won't.

TOC could work, if you have expanded it out, from a TOC field string to a complete TOC. docx4j itself doesn't contain code to do this, but I think there is code to create TOC entries floating around on the forum. The commercial Enterprise Edition includes this functionality.

As an alternative, you could consider LibreOffice/OpenOffice.