pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1641170 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java
Date Sun, 23 Nov 2014 10:31:57 GMT
Author: lehmi
Date: Sun Nov 23 10:31:57 2014
New Revision: 1641170

URL: http://svn.apache.org/r1641170
Log:
PDFBOX-2430: switch to use the non-sequential parser

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java?rev=1641170&r1=1641169&r2=1641170&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/Encrypt.java Sun Nov 23 10:31:57
2014
@@ -158,7 +158,7 @@ public class Encrypt
                 {
                     outfile = infile;
                 }
-                document = PDDocument.loadLegacy( new File(infile) );
+                document = PDDocument.load( new File(infile) );
 
                 if( !document.isEncrypted() )
                 {



Mime
View raw message