pdfdoc.py: PDFFormXObject.format missing Resources bug patch from Scott Meyer
authorrgbecker
Thu, 11 Jun 2009 09:21:50 +0000
changeset 3172 425aa215185f
parent 3171 c94c900d9263
child 3173 ded6e2bbf425
pdfdoc.py: PDFFormXObject.format missing Resources bug patch from Scott Meyer
src/reportlab/pdfbase/pdfdoc.py
--- a/src/reportlab/pdfbase/pdfdoc.py	Mon Jun 08 15:15:46 2009 +0000
+++ b/src/reportlab/pdfbase/pdfdoc.py	Thu Jun 11 09:21:50 2009 +0000
@@ -1977,6 +1977,7 @@
             if self.XObjects:
                 #print "XObjects", self.XObjects.dict
                 resources.XObject = self.XObjects
+            self.Resources=resources
         if self.compression:
             self.Contents.filters = [PDFBase85Encode, PDFZCompress]
         sdict = self.Contents.dictionary
@@ -1985,7 +1986,7 @@
         sdict["FormType"] = 1
         sdict["BBox"] = self.BBox
         sdict["Matrix"] = self.Matrix
-        sdict["Resources"] = resources
+        sdict["Resources"] = self.Resources
         return self.Contents.format(document)
 
 class PDFPostScriptXObject: