Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 568B01816B for ; Sun, 25 Oct 2015 05:23:17 +0000 (UTC) Received: (qmail 82664 invoked by uid 500); 25 Oct 2015 05:23:17 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 82641 invoked by uid 500); 25 Oct 2015 05:23: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 Delivered-To: moderator for users@pdfbox.apache.org Received: (qmail 76171 invoked by uid 99); 25 Oct 2015 05:11:53 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.65 X-Spam-Level: *** X-Spam-Status: No, score=3.65 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_INFOUSMEBIZ=0.75, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=fastmail.us header.b=nVHXeEfa; dkim=pass (1024-bit key) header.d=messagingengine.com header.b=FbTTae5E DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=6a+ 04WJq49agQns0MmiJpISxYGU=; b=nVHXeEfaAFmfSnXKLzSlahWKL21jkf1Hhyp bSwy/G8zEznK+6044V6Jrgyp4RGP+Y6FRk7cjRHKag/ipz1kmkj4U/Txi+8jaPct Gs60DQz2OgMzqBCpkvoyBG4epOFbEerFXHiUokWgfNHQmFn+mwg5fhxpEoMkt8JD zgxV5HpM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=6a+04WJq49agQns0MmiJpISxYGU=; b=FbTTa e5EMNOG8HCrUOZw799JIyBybM7S3YMlQigHEbyd6PiRPbq6YvSZDoP4RAXLnd9Ea dOc1v0Vf+KXocNoqzuUMYLi4BpqYh0Oc+QG8z1oFjFtQnjPiTWt/a7fju1SZv9m5 qVWMI0nJlL82Qb7jpaeG/r5FynyaQtgIAc0YCs= Message-Id: <1445749894.2281164.419441833.7186905A@webmail.messagingengine.com> X-Sasl-Enc: od5sCVTqI8Dq2tAsRruJET2HHNO7YwdqbXEVWY7MRuUj 1445749894 From: Fred Andrews To: users@pdfbox.apache.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/alternative; boundary="_----------=_144574989422811640"; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-25d3ec43 Subject: Re: Gettting error on loading password protected docs Date: Sat, 24 Oct 2015 22:11:34 -0700 --_----------=_144574989422811640 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="ISO-8859-1" I tried adding the Security call, no difference. I did a search on 'as_sys_sec_alg_ideaCBC' and it looks like one of many algorithms that can be included in BC.=A0 Could that somehow not be in the 2.0 build? I have about a dozen PDF files from different sources that are getting this error. They were all readable in 1.8. Files like this do tend to have proprietary information.=A0 But I can take any statement I have from American Express, try to read it with PDFBox 2, and get this error. Thanks > Sounds like a BC problem. Please try this before calling any > PDFBox method: > > Security.addProvider(new BouncyCastleProvider()); > > > Tilman > > Am 24.10.2015 um 22:18 schrieb Fred Andrews: >> In 2.0 todays build I am getting the following error when opening >> files that have a blank password. >> >> java.lang.NoSuchFieldError: as_sys_sec_alg_ideaCBC at org.bouncycast- >> le.jcajce.provider.symmetric.IDEA$Mappings.configure(Unknown Source) >> at org.bouncycastle.jce.provider.BouncyCastleProvider.loadAlgorithms- >> (Unknown Source) at >> org.bouncycastle.jce.provider.BouncyCastleProvider.setup(Unknown >> Source) at org.bouncycastle.jce.provider.BouncyCastleProvider.access- >> $000(Unknown Source) at >> org.bouncycastle.jce.provider.BouncyCastleProvider$1.run(Unknown >> Source) at java.security.AccessController.doPrivileged(Native Method) >> at org.bouncycastle.jce.provider.BouncyCastleProvider.(Unknown >> Source) at org.apache.pdfbox.pdmodel.encryption.SecurityHandlerFacto- >> ry.(SecurityHandlerFactory.java:44) at org.apache.pdfbox.pdm- >> odel.encryption.PDEncryption.(PDEncryption.java:96) at org.apa- >> che.pdfbox.pdfparser.PDFParser.prepareDecryption(PDFParser.java:263) >> at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java- >> :196) at >> org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:230) at >> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:972) at >> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:876) >> >> I am calling=A0=A0=A0=A0=A0 document =3D PDDocument.load(inputstream) >> >>with the intent to then call >> >>if( document.isEncrypted() ) >> >> But am getting the above error on the initial load. >> >> Is this a bug, a build problem, or has the call sequence for this >> changed in 2.0? >> >> I am building with the only related jar file being pdfbox-app-2.0.0-2015= 1024.140816- >> 1753.jar >> >>Thanks=A0=A0=A0 Fred Andrews=A0=A0=A0 fred_andrews@fastmail.us >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org --=20 http://www.fastmail.com - Access all of your messages and folders wherever you are --_----------=_144574989422811640--