pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1868032 - /pdfbox/branches/issue4569/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
Date Sat, 05 Oct 2019 17:12:49 GMT
Author: lehmi
Date: Sat Oct  5 17:12:49 2019
New Revision: 1868032

URL: http://svn.apache.org/viewvc?rev=1868032&view=rev
Log:
PDFBOX-4569: merge PDFParser#parse and PDFParser#getPDDocument

Modified:
    pdfbox/branches/issue4569/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java

Modified: pdfbox/branches/issue4569/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java?rev=1868032&r1=1868031&r2=1868032&view=diff
==============================================================================
--- pdfbox/branches/issue4569/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
(original)
+++ pdfbox/branches/issue4569/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
Sat Oct  5 17:12:49 2019
@@ -145,9 +145,7 @@ public final class ShowSignature
             // with IOUtils.toByteArray() and pass a RandomAccessBuffer() object to the
             // PDFParser constructor.
             PDFParser parser = new PDFParser(raFile, password);
-            parser.setLenient(false);
-            parser.parse();
-            try (PDDocument document = parser.getPDDocument())
+            try (PDDocument document = parser.parse(false))
             {
                 for (PDSignature sig : document.getSignatureDictionaries())
                 {



Mime
View raw message