pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865058 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Tue, 13 Aug 2019 17:37:34 GMT
Author: tilman
Date: Tue Aug 13 17:37:34 2019
New Revision: 1865058

URL: http://svn.apache.org/viewvc?rev=1865058&view=rev
Log:
PDFBOX-4080: pass PDDocument to construct appearances, as suggested by Ghenadii Batalski

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1865058&r1=1865057&r2=1865058&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Tue Aug 13 17:37:34 2019
@@ -1299,8 +1299,7 @@ public class PageDrawer extends PDFGraph
         PDAppearanceDictionary appearance = annotation.getAppearance();
         if (appearance == null || appearance.getNormalAppearance() == null)
         {
-            // TODO: Improve memory consumption by passing a ScratchFile
-            annotation.constructAppearances();
+            annotation.constructAppearances(renderer.document);
         }
         if (annotation.isNoRotate() && getCurrentPage().getRotation() != 0)
         {



Mime
View raw message