We are pleased to announce the release of Spire.PDF for Android via Java 9.10.1. This version supports setting encryption options when encrypting PDF documents and determining whether PDF document stream is encrypted. Besides, it also adds a new method to convert PDF to Word. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature | SPIREPDF-6190 | Support setting encryption options when encrypting PDF documents.
PdfDocument pdfdoc = new PdfDocument(); pdfdoc.loadFromFile(inputFile); PdfSecurityPolicy securityPolicy = new PdfPasswordSecurityPolicy("123", "e-iceblue"); securityPolicy.setEncryptionAlgorithm(PdfEncryptionAlgorithm.AES_128); securityPolicy.setEncryptMetadata(false); pdfdoc.encrypt(securityPolicy); pdfdoc.saveToFile(outputFile); |
New feature | - | Supports determining if a PDF document stream is encrypted.
FileInputStream stream_1 = new FileInputStream(new File(inputFile_1)); boolean isPasswordProtected_1 = PdfDocument.isPasswordProtected(stream_1); |
New feature | - | Add a new method to convert PDF to Word.
PdfToWordConverter convert = new PdfToWordConverter(inputFile); convert.saveToDocx(outputFile); |
Click the link below to get Spire.PDF for Android via Java 9.10.1: