Howto: convert/print a docx to PDF using Java
See org.docx4j.samples.CreatePdf.java for an example.
The example takes the specified docx file, and displays it using the PDF Viewer included in docx4j.
But you can write the PDF to any OutputStream.
See org.docx4j.samples.CreatePdf.java for an example.
The example takes the specified docx file, and displays it using the PDF Viewer included in docx4j.
But you can write the PDF to any OutputStream.