pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1651162 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java
Date Mon, 12 Jan 2015 18:58:20 GMT
Author: lehmi
Date: Mon Jan 12 18:58:19 2015
New Revision: 1651162

URL: http://svn.apache.org/r1651162
Log:
PDFBOX-2515: use the non-sequential parser instead of the legacy parser

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java?rev=1651162&r1=1651161&r2=1651162&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java
Mon Jan 12 18:58:19 2015
@@ -151,7 +151,7 @@ public class CreateSignature implements
         FileOutputStream fos = new FileOutputStream(outFile);
 
         // sign
-        PDDocument doc = PDDocument.loadLegacy(inFile);
+        PDDocument doc = PDDocument.load(inFile);
         signDetached(doc, fos, tsaClient);
         doc.close();
     }



Mime
View raw message