Spire.PDF for Java 12.9.0 supports rich text and stream input

2026-09-02 02:28:44

We're pleased to announce the release of Spire.PDF for Java 12.9.0. This version adds support for rich text in PdfGridCell and stream input for PdfToWordConverter, and fixes several known issues related to PDF to image conversion, PDF to PDF/A-2B conversion, JPMS module encapsulation compatibility, and PDF merging. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPDF-8081 Added a method to support adding rich text to PdfGridCell.
/ Add rich text
cellContent1.setRichText("<html><body><p style='color:black; font-size:14pt;'>Hello World</p></body></html>");
New Feature SPIREPDF-8127 PdfToWordConverter now supports stream input.
InputStream fileStream = new FileInputStream(inputFile);
PdfToWordConverter convert = new PdfToWordConverter(fileStream);
convert.saveToDocx(outputFile);
Bug Fix SPIREPDF-8140 Fixed an issue where form content was lost when converting PDF to image.
Bug Fix SPIREPDF-8143 Fixed an issue where the program hung when converting PDF to PDF/A-2B.
Bug Fix SPIREPDF-8146 Fixed an IllegalAccessError compatibility issue caused by JPMS module encapsulation when running PDF features on JDK 9+.
Bug Fix SPIREPDF-8149 Fixed an issue where a NullPointerException was thrown when merging PDF documents.
Click the link below to download Spire.PDF for Java 12.9.0: