You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2016/02/11 18:05:25 UTC
svn commit: r1729864 -
/pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/content/ContentStreamWrapper.java
Author: tilman
Date: Thu Feb 11 17:05:25 2016
New Revision: 1729864
URL: http://svn.apache.org/viewvc?rev=1729864&view=rev
Log:
PDFBOX-3024: cleanup font container map after process substream, because the fonts are no longer valid
Modified:
pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/content/ContentStreamWrapper.java
Modified: pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/content/ContentStreamWrapper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/content/ContentStreamWrapper.java?rev=1729864&r1=1729863&r2=1729864&view=diff
==============================================================================
--- pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/content/ContentStreamWrapper.java (original)
+++ pdfbox/branches/1.8/preflight/src/main/java/org/apache/pdfbox/preflight/content/ContentStreamWrapper.java Thu Feb 11 17:05:25 2016
@@ -391,4 +391,13 @@ public class ContentStreamWrapper extend
}
}
}
+
+ @Override
+ protected void clearAfterProcessSubStream()
+ {
+ super.clearAfterProcessSubStream();
+
+ // PDFBOX-3024: delete all font containers because their fonts have been cleared
+ context.clearFontContainers();
+ }
}