pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: Extraction of text from secured PDFs throws runtime exception
Date Thu, 15 Jan 2015 17:16:40 GMT
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 <cbamford@mimecast.com>:

> 
> 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
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message