You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2014/06/11 17:27:52 UTC
svn commit: r1601926 -
/pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java
Author: tilman
Date: Wed Jun 11 15:27:51 2014
New Revision: 1601926
URL: http://svn.apache.org/r1601926
Log:
PDFBOX-1474: removed catch handler for non existant InvalidPasswordException
Modified:
pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java
Modified: pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java?rev=1601926&r1=1601925&r2=1601926&view=diff
==============================================================================
--- pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java (original)
+++ pdfbox/branches/1.8/lucene/src/main/java/org/apache/pdfbox/lucene/LucenePDFDocument.java Wed Jun 11 15:27:51 2014
@@ -38,7 +38,6 @@ import org.apache.pdfbox.pdmodel.PDDocum
import org.apache.pdfbox.pdmodel.PDDocumentInformation;
import org.apache.pdfbox.exceptions.CryptographyException;
-import org.apache.pdfbox.exceptions.InvalidPasswordException;
import org.apache.pdfbox.util.PDFTextStripper;
@@ -461,13 +460,6 @@ public class LucenePDFDocument
{
throw new IOException( "Error decrypting document(" + documentLocation + "): " + e );
}
- catch( InvalidPasswordException e )
- {
- //they didn't suppply a password and the default of "" was wrong.
- throw new IOException(
- "Error: The document(" + documentLocation +
- ") is encrypted and will not be indexed." );
- }
finally
{
if( pdfDocument != null )