Spire.Office for Java 9.1.10 is released

2024-01-26 09:46:37

We are excited to announce the release of Spire.Office for Java 9.1.10. In this version, Spire.PDF for Java adds two new methods for decrypting PDF; Spire.Doc for Java optimizes the exception catching for loading non-existent documents; Spire.Barcode for Java supports adding pictures to the center of QR code. Moreover, a lot of known issues are fixed in this version. More details are listed below.

Click the link to download Spire.Office for Java 9.1.10:

Here is a list of changes made in this release

Spire.PDF for Java

Category ID Description
New feature SPIREPDF-6479 Adds two new methods for decrypting PDFs.
PdfDocument pdf1 =new PdfDocument();
pdf1.loadFromFile("input.pdf");
pdf1.decrypt();
pdf1.saveToFile("output.pdf");

PdfDocument pdf2 =new PdfDocument();
pdf2.loadFromFile("input.pdf");
pdf2.decrypt(ownerPassword);
pdf2.saveToFile("output.pdf");
Bug SPIREPDF-6429 Fixes the issue that the program threw "java.lang.NullPointerException" when converting OFD to PDF.
Bug SPIREPDF-6482 Fixes the issue that the program hung when converting PDF to images.
Bug SPIREPDF-6485 Fixes the issue that the content was lost after converting OFD to PDF.
Bug SPIREPDF-6486 Fixes the issue that the program threw "java.lang.NullPointerException" when converting PDF to XLSX.
Bug SPIREPDF-6502 Fixes the issue that the content was garbled after replacing text.

Spire.Doc for Java

Category ID Description
New feature SPIREDOC-10090 Addes the Bookmark.getFirstColumn() method and the Bookmark.getLastColumn() method.
New feature SPIREDOC-10163 Optimizes the exception catching mechanism when loading non-existent document paths.
Bug SPIREDOC-8257 Fixed the issue that the paging was incorrect when converting Docx documents to PDF documents.
Bug SPIREDOC-8568
SPIREDOC-9172
Fixed the issue that the content was incorrect when converting Docx documents to PDF documents.
Bug SPIREDOC-8586 Fixed the issue that the header moved down when converting Docx documents to PDF documents.
Bug SPIREDOC-8797 Fixed the issue that combined graphics were drawn incorrectly when converting Docx documents to HTML documents.
Bug SPIREDOC-9069 Fixed the issue that checkbox checkmarks were missing and an extra page occurred when converting Docx documents to PDF documents.
Bug SPIREDOC-9577 Fixed the issue that the program threw java.lang.ArrayIndexOutOfBoundsException when converting Docx documents to PDF documents.
Bug SPIREDOC-9611 Fixed the issue that some contents were lost and the formatting was incorrect when converting Docx documents to PDF documents.
Bug SPIREDOC-9709 Fixed the issue that the program threw "No have this value 63" error when loading Doc documents.
Bug SPIREDOC-9713 Fixed the issue that the position of pictures was wrong when converting Doc documents to PDF documents.
Bug SPIREDOC-9763 Fixed the issue that the effect of accepting revisions was incorrect.
Bug SPIREDOC-9783 Fixed the issue that images and text overlapped when converting Docx documents to PDF documents.
Bug SPIREDOC-9799 Fixed the issue that fonts and paragraph styles were changed after replacing the contents of bookmarks.
Bug SPIREDOC-10011 Fixed the issue that header contents were displayed incorrectly after converting Docx documents to PDF documents.
Bug SPIREDOC-10015 Fixed the issue that table styles were incorrect when converting Docx documents to PDF documents.
Bug SPIREDOC-10040 Fix the issue that the program threw an "Argument path cannot be empty" error when converting Docx documents to PDF documents.
Bug SPIREDOC-10054 Fixed the issue that images are displayed incorrectly when converting Docx documents to PDF documents.
Bug SPIREDOC-10074 Fixed the issue that tables were lost and table height was increased when converting Doc documents to PDF documents.
Bug SPIREDOC-10143 Fixed the issue that the program threw "java.lang.IllegalStateException: Wrong Word version" error when loading Docx documents encrypted with WPS.
Bug SPIREDOC-10148 Fixed the issue that directory jumps were incorrect when converting Docx documents to PDF documents.
Bug SPIREDOC-10157 Fixed an issue that the markup adding to a document using the BuiltinDocumentProperties.setKeyWord() method failed.
Bug SPIREDOC-10179 Fixed the issue that page number formatting changed after converting a Docx document to a PDF document.

Spire.Barcode for Java

Category ID Description
New feature - The method for applying a license has been changed to com.spire.barcode.license.LicenseProvider.setLicenseKey(key).
New feature SPIREBARCODE-244 Supports adding pictures to the center of QR code.
BarcodeSettings barCodeSetting = new BarcodeSettings();
BufferedImage image = ImageIO.read(new File("Image/1.png"));
barCodeSetting.setQRCodeLogoImage(image);
Bug SPIREBARCODE-243 Fixes the issue that barcode recognition failed in vertical orientation.