Spire.PDF for Java 10.1.9 adds two new methods for decrypting PDF

2024-01-23 09:08:58

We are pleased to announce the release of Spire.PDF for Java 10.1.9. This version adds two new methods for decrypting PDFs. The conversion from PDF to images, XLSX and OFD to PDF has also been enhanced. Besides, some known issues are fixed successfully in this version, such as the issue that the content was garbled after replacing text. More details are listed below.

Here is a list of changes made in this release

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.
Click the link below to download Spire.PDF for Java 10.1.9: