Convert .dotx files to PDF in Java using jOfficeConvert

Q: Can Qoppa’s Java library jOfficeConvert open and convert .dotx files to PDF? A: Yes. dotx files are template files created by Microsoft’s Word processing programs. They are saved in the same XML format as the docx Word files but are named with a dotx extension to signify that they are templates.

Read More

Excel to PDF Conversion Options

When converting an Excel spreadsheet to PDF using jOfficeConvert, there are a few options that can be set through the ExcelConvertOptions class: Option to create a bookmark for each worksheet Option to set the layout of the page (fit to page, width or height) Option to set a maximum number for the output PDF Here […]

Read More

Convert an Excel worksheet to a Tiff Image in Java using jOfficeConvert

This Java sample program uses jOfficeConvert to convert an Excel spreadsheet to a multi page Tiff image. // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions());   // Save the document as a multi-page TIFF file ed.saveDocumentAsTIFF("output.tif", new TIFFOptions(150, TIFFOptions.TIFF_FAX_GROUP4));// Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the […]

Read More

Print an Excel spreadsheet in Java using jOfficeConvert

jOfficeConvert allows to print an Excel spreadhsheet and send it either to the default printer or to a named printer. // Load the document ExcelDocument ed = new ExcelDocument("input.xlsx", new ExcelConvertOptions());   // Print to the default printer ed.printToDefaultPrinter(null);   // Print to a named printer ed.print("my printer", null);// Load the document ExcelDocument ed = […]

Read More

Sample Java code to convert Excel to PDF using jOfficeConvert

To convert an excel spreadsheet to PDF using Qoppa’s library jOfficeConvert, it takes only 2 lines of code: // Load the document ExcelDocument excelDoc = new ExcelDocument("input.xlsx", new ExcelConvertOptions());   // Save the document as a PDF file excelDoc.saveAsPDF("output.pdf");// Load the document ExcelDocument excelDoc = new ExcelDocument("input.xlsx", new ExcelConvertOptions()); // Save the document as a […]

Read More

Create, Merge and Convert PDF documents with Mule in an automated Worklow

Qoppa’s Java PDF libraries can be used within Mule ESB to automate PDF document processes within a workflow. PDF files can be transmitted as an input stream to any of our Java libraries. Follow the detailed steps showing how to integrate Qoppa’s PDF library jPDFProcess within a Mule flow. The following PDF functions available in […]

Read More

Setting a fallback font when converting Word to PDF with jWordConvert

When converting a Word document to PDF using Qoppa’s PDF library jWordConvert, sometimes a font specified in the Word document may not be available on the machine. See our matching logic to identify a matching font. jWordConvert will then use the fallback font if one was set. Fallback Font Error You will see an error […]

Read More

Convert DOCM files to PDF using jWordConvert

Q: Is it possible to convert DOCM Word files to PDF using jWordConvert? A: If you change the extension from docm to docx, Qoppa’s Java library jWordConvert will be able to open the Word files and convert them to PDF. DOCM files are similar to DOCX files, but they contain macros and VBA scripting. Like […]

Read More

jWordConvert v2016R2 Build Notes and Download

Download jwordconvert.v2016R2.06.jar Here are the build notes for jWordConvert, Qoppa Java Word to PDF Conversion Library, for version v2016R2: v2016R2.06 – March 29 2017 JWOR-351 – Document Specific: JPEG image reading error: Numbers of source Raster bands and source color space components do not match v2016R2.05 – February 17 2017 JWOR-350 – Document Specific conversion […]

Read More

OldWordFileFormatException when converting Word 6 and Word 95 files to PDF

Q: We are using Qoppa’s jWordConvert for converting Microsoft Word documents to Adobe PDF. We are getting the below exception for the documents with a version less than or equal to 95. Can jWordConvert convert older Word documents? com.qoppa.org.apache.poi.hwpf.OldWordFileFormatException: The document is too old – Word 95 or older. Try HWPFOldDocument instead? at com.qoppa.org.apache.poi.hwpf.HWPFDocument.<init>(Unknown Source) […]

Read More

jWordConvert v2016R1 Build Notes and Download

Download jwordconvert.v2016R1.07.jar v2016R1.07 – June 22 2016 JWOR-332: Added support for Top-to-Bottom and Bottom-to-top text directions in table cells v2016R1.06 – May 25 2016 JWOR-331 – Added support for “Scheme color” property and border ln.noFill property for DrawingML shapes. v2016R1.05 – April 21 2016 JWOR-330 – Fix issue with 2 column layout and add code […]

Read More

Font Matching Logic when converting from Word to PDF without embedding fonts

Even though a PDF with non-embedded fonts does not contain actual font data, the PDF format requires certain information from the fonts used to create the PDF file. For this reason, Qoppa’s Word to PDF conversion library, jWordConvert, needs to locate a Java system font corresponding to each Word document font for the required information. This […]

Read More

Setting the option to embed fonts or not when converting Word to PDF

In version v2016R1, it is possible to customize jWordConvert to either embed or not embed fonts in the output PDF document converted from Microsoft Word. Option to Embed Fonts Embedding fonts is the default option in jWordConvert starting in version v2016R1. It is important to define a fall back font to be used in case […]

Read More

Support for Arabic, Hebrew, Right to Left Text in Word to PDF Conversion

Starting in version v2015R1, jWordConvert, Qoppa’s Java library, can convert Microsoft Word documents containing Arabic and Hebrew to PDF or print them. We’ve added support for right to left text layout including word order, indents, tabs, alignment, paragraphs, table cells and columns. We’ve implemented the unicode bi-directional algorithm for mixed text documents (right to left […]

Read More

ApachePOI ooxml conflict issue with jWordConvert

jWordConvert uses a subset of ooxml-schemas 1.1 where some classes and methods have been modified. Unfortunately since ooxml uses introspection internally, we could not rename the package and this can create a conflict for customers who also have this jar directly in their class path. Sample Exceptions Examples of exceptions received when there is a […]

Read More

v2015R1 jWordConvert Release

Version v2015R1 – June 04 2015 This version adds support for left to right text, such as Arabic or Hebrew, as well as many other small improvements and bug fixes. JWOR-23 – Support for styled/complex Headers and Footers JWOR-44 – Support for Right to Left Text for Arabic, Hebrew JWOR-58 – Support Drawing Clip Art […]

Read More

v2014R1 jWordConvert Release

Version v2014R1 – September 02 2014 This version adds support for WMF images which are being converted to vector graphics into the output PDF document. This allows to convert  com objects such as mathematical equations or formula from Word to PDF. [JWOR-199] – Support for WMF images, which are now being converted to vector graphics […]

Read More

jWordConvert Java API

Q: Where can I find jWordConvert javadoc API? A: You can find the API specification for the latest version of our library jWordConvert on our website at this link. jWordConvert is a java library to create PDF documents from Microsoft Word documents.

Read More

Can jWordConvert convert Word documents in .docx format to PDF?

Q: Does jWordConvert support converting .docx documents to PDF? A: Yes. As of version 2.0 released October 21 2011, jWordConvert, our java library to convert Word documents to PDF supports the latest Microsoft Word 2007-2010 format (Word files with a .docx extension) in addition to supporting Word 97-2003 (Word files with a .doc extension).

Read More

Code Sample: Convert Word document to PDF in java

This java program will convert a Word document to a PDF document using Qoppa’s library jOfficeConvert. // Load the document WordDocument wdoc = new WordDocument ("input.doc");   // Save the document as a PDF file wdoc.saveAsPDF("output.pdf");// Load the document WordDocument wdoc = new WordDocument ("input.doc"); // Save the document as a PDF file wdoc.saveAsPDF("output.pdf");

Read More

jWordConvert Version History

Version v2013R2 – August 16 2013   In this version, we improved a lot our Java Word to PDF conversion library internally. We no longer have 2 different sets of rendering code for the 2 distinct formats: Word 97-2003 (.doc) Word 2007-10 (.docx)   We implemented a common document object model for the 2 PDF converters. This […]

Read More

Code Sample: Convert Word document to Tiff in Java

This Java program converts a Word document to a multi-page TIFF file using Qoppa’s library jWordConvert. import com.qoppa.pdf.TIFFOptions; import com.qoppa.word.WordDocument; public class WordToTIFF { public static void main (String [] args) { try { // Load the Word document WordDocument wd = new WordDocument ("input.doc"); // Save the document as a multi-page TIFF file wd.saveDocumentAsTIFF("output.tif", […]

Read More

v2013R2 jWordConvert Release

Version v2013R2 – August 16 2013 In this version, we improved a lot our Java Word to PDF conversion library internally. We no longer have 2 different sets of rendering code for the 2 distinct formats: Word 97-2003 (.doc) Word 2007-10 (.docx) We implemented a common document object model for the 2 PDF converters. This allows more […]

Read More

v2013R1 jWordConvert Release

Version v2013R1 – March 29, 2013 New Features: 3604 Support for checkboxes (FORMCHECKBOX) fields in .doc files. 3683, 3757, 2833, 2791 Table improvements: indentation first row’s color ‘\f’ (for new page) is ignored inside of tables auto text color value to be readable on background color carriage returns at the end of a table cell […]

Read More