pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1801887 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
Date Thu, 13 Jul 2017 20:50:31 GMT
Author: tilman
Date: Thu Jul 13 20:50:30 2017
New Revision: 1801887

URL: http://svn.apache.org/viewvc?rev=1801887&view=rev
Log:
PDFBOX-3868: avoid memory hungry COSStream constructor

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java?rev=1801887&r1=1801886&r2=1801887&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/visible/PDVisibleSigBuilder.java
Thu Jul 13 20:50:30 2017
@@ -344,7 +344,7 @@ public class PDVisibleSigBuilder impleme
              throws IOException
     {
         // create blank n0 background layer form
-        PDFormXObject n0Form = new PDFormXObject(new COSStream());
+        PDFormXObject n0Form = new PDFormXObject(pdfStructure.getTemplate().getDocument().createCOSStream());
         n0Form.setBBox(formatter);
         n0Form.setResources(new PDResources());
         n0Form.setFormType(1);



Mime
View raw message