You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ja...@apache.org on 2014/12/05 22:50:01 UTC
svn commit: r1643440 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
Author: jahewson
Date: Fri Dec 5 21:50:01 2014
New Revision: 1643440
URL: http://svn.apache.org/r1643440
Log:
PDFBOX-2423: Allow inheritance of resources from nested forms
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java?rev=1643440&r1=1643439&r2=1643440&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/contentstream/PDFStreamEngine.java Fri Dec 5 21:50:01 2014
@@ -502,6 +502,11 @@ public class PDFStreamEngine
{
resources = streamResources;
}
+ else if (resources != null)
+ {
+ // inherit directly from parent stream, this is not in the PDF spec, but the file from
+ // PDFBOX-1359 does this and works in Acrobat
+ }
else
{
resources = currentPage.getResources();