pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <til...@apache.org>
Subject Re: Using the .net version of PDFBox
Date Sat, 13 Apr 2019 08:58:16 GMT
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 <gilad.denneboom@gmail.com> 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 <tilman@apache.org> wrote:
> 
> > You don't need it. After loading your PDF is decrypted.
> >
> > Tilman
> >
> > On 2019/04/12 13:52:53, Gilad Denneboom <gilad.denneboom@gmail.com>
> > 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 <woodkr@ugcorp.com> 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: users-unsubscribe@pdfbox.apache.org
> > For additional commands, e-mail: users-help@pdfbox.apache.org
> >
> >
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message