pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1601899 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Wed, 11 Jun 2014 13:44:10 GMT
Author: tilman
Date: Wed Jun 11 13:44:10 2014
New Revision: 1601899

URL: http://svn.apache.org/r1601899
Log:
PDFBOX-1474: PDDocument.decrypt does not throw InvalidPasswordException, as noticed by Josue
Martinez Buenrrostro

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1601899&r1=1601898&r2=1601899&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Wed
Jun 11 13:44:10 2014
@@ -46,7 +46,6 @@ import org.apache.pdfbox.cos.COSObject;
 import org.apache.pdfbox.cos.COSStream;
 import org.apache.pdfbox.exceptions.COSVisitorException;
 import org.apache.pdfbox.exceptions.CryptographyException;
-import org.apache.pdfbox.exceptions.InvalidPasswordException;
 import org.apache.pdfbox.exceptions.SignatureException;
 import org.apache.pdfbox.io.RandomAccess;
 import org.apache.pdfbox.pdfparser.BaseParser;
@@ -934,10 +933,9 @@ public class PDDocument implements Pagea
      *
      * @throws CryptographyException If there is an error decrypting the document.
      * @throws IOException If there is an error getting the stream data.
-     * @throws InvalidPasswordException If the password is not a user or owner password.
      *
      */
-    public void decrypt( String password ) throws CryptographyException, IOException, InvalidPasswordException
+    public void decrypt( String password ) throws CryptographyException, IOException
     {
         try
         {



Mime
View raw message