From users-return-11664-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Sat Apr 13 08:58:18 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4E228180668 for ; Sat, 13 Apr 2019 10:58:18 +0200 (CEST) Received: (qmail 48281 invoked by uid 500); 13 Apr 2019 08:58:17 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 48264 invoked by uid 99); 13 Apr 2019 08:58:17 -0000 Received: from ui-eu-01.ponee.io (HELO localhost) (176.9.59.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Apr 2019 08:58:16 +0000 To: Content-Type: text/plain; charset=utf-8 Date: Sat, 13 Apr 2019 08:58:16 -0000 MIME-Version: 1.0 In-Reply-To: x-ponymail-agent: PonyMail Composer/0.3 From: Tilman Hausherr Subject: Re: Using the .net version of PDFBox Message-ID: References: <135ab7418ff844afbd88621fcbb61e52@WSE15M5.ugcorp.com> X-Mailer: LuaSocket 3.0-rc1 x-ponymail-sender: dc8b785d67b4628425f4b275427621124af5d812 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 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 wrote: > > > You don't need it. After loading your PDF is decrypted. > > > > Tilman > > > > On 2019/04/12 13:52:53, Gilad Denneboom > > 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 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