Bug 45668

Summary: cairo backend does not print inline images
Product: poppler Reporter: Adrian Johnson <ajohnson>
Component: cairo backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: don't read inline image stream twice

Description Adrian Johnson 2012-02-05 22:29:40 UTC
The evince bug https://bugzilla.gnome.org/show_bug.cgi?id=653159 contains a pdf file that prints a blank page when using cairo. PSOutputDev can print the file.

All the images in the pdf are inline images. The problem is caused by the setMimeData() function. When printing it reads the image stream a second time. 
According to the comment in PSOutputDev::doImageL2 inline image streams must not be read twice.
Comment 1 Adrian Johnson 2012-02-05 22:31:12 UTC
Created attachment 56642 [details] [review]
don't read inline image stream twice
Comment 2 Albert Astals Cid 2012-02-06 09:30:01 UTC
Please hold on this aptch until next week and let's concentrate on regtesting the xpdf303merge branch.
Comment 3 Carlos Garcia Campos 2012-02-14 23:47:48 UTC
xpdf303 merge now, feel free to push it
Comment 4 Adrian Johnson 2012-02-15 00:21:27 UTC
Pushed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.