Description
InputStream content = ...;
int keyLength = 256;
AccessPermission ap = new AccessPermission();
StandardProtectionPolicy spp = new StandardProtectionPolicy(
symmPw, symmPw, ap);
spp.setEncryptionKeyLength(keyLength);
document.protect(spp);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
document.save(baos);
in the save() the above mentioned exception is thrown (wasn't with the 2013-11 snapshot)
Attachments
Attachments
Issue Links
- relates to
-
PDFBOX-2206 Cannot save a document which has been closed
- Closed
-
PDFBOX-2292 Saving of decrypted version of password protected document gives an error
- Closed
-
PDFBOX-1926 Document.save() after Document.close() causes Null Pointer Exception
- Closed