PdfReader reader = new PdfReader(pdf[f]);
// we retrieve the total number of pages
int n = reader.getNumberOfPages();
I tested your example for transform docx to pdf: the result is not very good.
The generated PDF document doesn't resemble the original DOCX one
I take it you are using docx4j 2.1.0 or later? In 2.1.0, the HTML output is created using the XSLT from the OpenXMLViewer project.
The PDF output is currently generated from HTML output
I'm ready... I can share my code (jsf/ejb3 for docx generation) and if you want I can support you.. It could be my first collaboration to an open project..
Users browsing this forum: Google [Bot] and 52 guests