10000 Merge pull request #705 from mdboom/alpha_pdf · matplotlib/matplotlib@502974c · GitHub
[go: up one dir, main page]

Skip to content

Commit 502974c

Browse files
committed
Merge pull request #705 from mdboom/alpha_pdf
Problem with images and alpha in pdf when viewed in adobe
2 parents cfd50c8 + 7b9916d commit 502974c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,11 @@ def newPage(self, width, height):
448448
'Parent': self.pagesObject,
449449
'Resources': self.resourceObject,
450450
'MediaBox': [ 0, 0, 72*width, 72*height ],
451-
'Contents': contentObject }
451+
'Contents': contentObject,
452+
'Group': {'Type': Name('Group'),
453+
'S': Name('Transparency'),
454+
'CS': Name('DeviceRGB')}
455+
}
452456
pageObject = self.reserveObject('page')
453457
self.writeObject(pageObject, thePage)
454458
self.pageList.append(pageObject)

0 commit comments

Comments
 (0)
0