Firefox flash plugin prints color image in black&white because generated PostScript does not conform to DSC

Bug #116997 reported by David Agudo
6
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Pascal De Vuyst
firefox (Ubuntu)
Invalid
Medium
Pascal De Vuyst
flashplugin-nonfree (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: cupsys

I am using a fresh install of Ubuntu 7.04 (feysty fawn), with the default CUPS configuration for an Epson Stylus D88 Plus (gutenprint driver).

When I print a postcript file with coloured images (lpr file.ps), it gets printed in black&white and graphics are of very low quality.

If I get that same postcript file, I convert it to pdf (ps2pdf file.ps) and then print the resulting pdf file (lpr file.pdf), it gets correctly printed in colour.

Revision history for this message
David Agudo (dagudoj) wrote :
Revision history for this message
David Agudo (dagudoj) wrote :
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Thanks for your bug report.
Please attach the output of the printingbug info script, it can be found here: https://wiki.ubuntu.com/PrintingBugInfoScript.
Can you also give the output of the following command:
$ lpoptions -p <printer> -l
And attach your /etc/cups/ppd/<printer>.ppd

Changed in cupsys:
assignee: nobody → pascal-devuyst
status: Unconfirmed → Needs Info
Revision history for this message
David Agudo (dagudoj) wrote :
Revision history for this message
David Agudo (dagudoj) wrote :
Revision history for this message
David Agudo (dagudoj) wrote :
Revision history for this message
David Agudo (dagudoj) wrote :

Thanks for your effort Pascal.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Your printing options seem to be OK.
Do you have the problem only with the PostScript file you provided or with other PostScript files that have color too?

Revision history for this message
David Agudo (dagudoj) wrote :

Really, the exact problem is as follows (I just simplified it for the sake of clarity):

- I open firefox and go to the following URL: http://callejero.lanetro.com/apps/lanetro/mapas.asp?pais=es&idvia=4935&num=0&muni=Madrid&mapa=tas1e65%2Dmadrid&prov=Madrid

- As you can see, the page presents a map with flashplayer. If I then print the map (using the icon at the lower right corner), the map is printed in black&white. At first I thought it could be related to the flash player.

- To identify the problem, I just got a copy of the printed file from /var/spool/cups (file.ps) and tried to print it again with different settings, but it is always printed in black&white. The file.ps file seems to be correct, no application complains about it.

But following your advice, I have tried to convert it to pdf and back again to ps (ps2pdf + pdf2ps)... the reconverted file is printed in colour correctly! (I attach this new file). So I guess that you are right, it must be something related to the file.

I don't have any other coloured ps file, and all pdf converted to ps with pdf2ps are printed correctly.

Now the question is... is there something weird in file.ps that affects CUPS or the gutenprint driver, but not Evince or ps2pdf?

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

CUPS requires that Postscript files conform to the Adobe PostScript Document Structuring Conventions.
It looks like the PostScript generated by firefox is not DSC compliant:

$ cupstestdsc file.ps
file.ps: FAIL
    Missing or bad %%Pages: comment!
        REF: Page 43, %%Pages:
    Missing or bad %%Page: comments!
        REF: Page 53, %%Page:
    Warning: no %%EndComments comment in file!

$ cupstestdsc fileconverted.ps
fileconverted.ps: PASS

Rejecting cupsys task, adding firefox task.

Changed in cupsys:
status: Needs Info → Rejected
Changed in firefox:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
David Agudo (dagudoj) wrote : Re: Firefox prints color image in black&white because generated PostScript does not conform to DSC

The postscript file has not been generated directly by Firefox, it has been generated by a flash plugin embedded in firefox, and to make thing worst, it is the one from Adobe (flashplugin-nonfree 9.0.31.0.2ubuntu1 in firefox 2.0.0.3+1-0ubuntu2).

So I fear the Firefox people will not be able to do anything... Unless somebody have any idea on how to solve this, perhaps we should close the bug.

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Rejecting firefox task, adding flashplugin-nonfree task.

Changed in firefox:
assignee: nobody → pascal-devuyst
status: Confirmed → Rejected
Changed in flashplugin-nonfree:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Does this still happen with flash version 11.2?

Changed in flashplugin-nonfree (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
David Agudo (dagudoj) wrote :

It is working properly in Ubuntu 12.04 x64, flash plugin 11,3,31,331.

Checked here (print icon on the right):

http://prs.metromadrid.es/metro/mapametrofull.asp

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Marking as fixed ok! Thank you!

Changed in flashplugin-nonfree (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.