Hi, you can find the pom.xml used for the 1.8.6 release at http://svn.apache.org/viewvc/pdfbox/tags/1.8.6/pdfbox/pom.xml?view=markup to verify your settings.
BR Maruan Am 15.01.2015 um 18:02 schrieb Chris Bamford <[email protected]>: > > Hi > > > Chris Bamford m: +44 7860 405292 w: www.mimecast.com > Senior Developer p: +44 207 847 8700 Address click here > > > > > > > > > > > I recently noticed the following runtime exception in my application when > trying to extract text from secured PDFs: > > java.lang.VerifyError: (class: org/bouncycastle/cms/CMSSignedDataParser, > method: replaceSigners signature: > (Ljava/io/InputStream;Lorg/bouncycastle/cms/SignerInformationStore;Ljava/io/OutputStream;)Ljava/io/OutputStream;) > Incompatible argument to function > > I am using PDFBox 1.8.6 and I use these APIs: > > document = PDDocument.load(is, true); > if (document.isEncrypted()) { > PdfUtil.decryptPDFDoc(document); > } > ... > > I am assuming the error is occurring in the decryptPDFDoc() call? > My maven pom dependencies are: > <dependency> > <groupId>org.bouncycastle</groupId> > <artifactId>bcprov-jdk15</artifactId> > <version>1.44</version> > </dependency> > <dependency> > <groupId>org.bouncycastle</groupId> > <artifactId>bcmail-jdk15</artifactId> > <version>1.44</version> > </dependency> > > Have I got this right? > > Thanks for any pointers. > > - Chris >

