No, you'll get IllegalStateException: PDF contains an encryption dictionary, please remove it with setAllSecurityToBeRemoved() or set a protection policy with protect()
Tilman On 2019/04/12 17:36:45, Gilad Denneboom <[email protected]> wrote: > So if I use the save command on it it will be saved as a non-encrypted file? > > On Fri, Apr 12, 2019 at 6:31 PM Tilman Hausherr <[email protected]> wrote: > > > You don't need it. After loading your PDF is decrypted. > > > > Tilman > > > > On 2019/04/12 13:52:53, Gilad Denneboom <[email protected]> > > wrote: > > > The openProtection seems to be missing from PDFBox 2.x, so how can I do > > it > > > using that version, please? > > > > > > On Tue, Nov 1, 2016 at 10:35 PM Keith R Wood <[email protected]> wrote: > > > > > > > I added these two lines to my code where you said, and everything > > seems to > > > > be working for me now. > > > > > > > > StandardDecryptionMaterial dm = new StandardDecryptionMaterial(""); > > > > doc.openProtection(dm); > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

