Red Hat Bugzilla – Bug 449085
Printing selection produces invalid Postscript file
Last modified: 2018-04-11 04:49:31 EDT
Description of problem:
It is not possible to print a selection with current Firefox in Fedora 9.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open a webpage
2. Select some text
3. Press File -> Print
The option "Selection" is greyed out
Option "SelectioN" selectable
Created attachment 307187 [details]
screenshot of non-reproduction
Created attachment 307192 [details]
Postscript produced by the Print (selection) command
Although I cannot reproduce the issue as described by the reporter, printing
selection doesn't produce valid Postscript for me.
The attached Postscript when run through ghostscript (from the package
[matej@viklef ~]$ gs mozilla.ps
GPL Ghostscript 8.62 (2008-02-29)
Copyright (C) 2008 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /limitcheck in --show--
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904
1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3
%oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval--
--nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- %array_continue
--dict:1146/1684(ro)(G)-- --dict:0/20(G)-- --dict:99/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 50220
GPL Ghostscript 8.62: Unrecoverable error, exit code 1
Matej: I can't reproduce that from the attachment in comment #2. I get no
errors, just some badly cropped text in a single line near the top.
Created attachment 307194 [details]
picture of default tab, where "selection" is greyed out
Matej, hi :)
While I have an option to "Print Selection Only" in the "Options" tab, in the
default dialog, it is greyed out. See attached file.
(In reply to comment #2)
> Created an attachment (id=307192) 
> Postscript produced by the Print (selection) command
> Although I cannot reproduce the issue as described by the reporter, printing
> selection doesn't produce valid Postscript for me.
Are your packages up to date? That PostScript file has:
%%Creator: cairo 1.5.12 (http://cairographics.org)
Cairo version 1.5.12 has lots of known bugs with its PostScript output.
These are fixed in cairo 1.6.4 which firefox should be using in Fedora 9,
(as far as I understand things).
If you can't get a cairo-1.6.4-generated PostScript file then there's a
problem. And if you can, but it's still broken, then that's another problem,
but one I will be very interested in hearing more about.
Created attachment 307239 [details]
another attempt to reproduce
Urgh, apparently upstream binary happened again (I hate like it is not possible
-- or it is inconvenient to run two binaries of firefox at once).
OK, this time it is cairo 1.6.4 and it is completely blank again. Carl, isn't
this the same issue as that RHEL 4.7 one?
Created attachment 307240 [details]
another attempt -- this time with proportional fonts
Hmm, there is apparently a difference when only non-proportional fonts are
selected (previous postscript), and only proportional fonts are (this
attachment). Still broken and incomplete, but we are getting there.
Just a short notice, when I use that option in the "Options" tab of the printing
dialog, I experience the same problem, my system is up to date. Matej, did you
have a look at my screenshot and can you reproduce that, also? "Auswahl" on the
screenshot means "Selection" in English.
Seems to be fixed in the latest fedora package (3.0.2)...