gs renders images as black boxes when generating PDF files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GS-GPL |
Invalid
|
Medium
|
|||
acroread (Ubuntu) |
Incomplete
|
Medium
|
Unassigned | ||
ghostscript (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
poppler (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi,
I just noticed that for several days my cupspdf printer driver (generating PDF files in the home directory as a special printer) generated broken PDF files when printing from firefox to cupspdf.
Debugging and breaking it down into its processing steps showed that firefox itself generates a PDF files and sends it to the cupspdf printer, which then runs something like (filenames replaced for debugging tests)
pdftops -level2 -origpagesizes x.pdf y.ps
/usr/lib/
/usr/bin/gs -q -dCompatibility
The first and the second step work, the generated postscript file (y.ps in this example) is correct (i.e. ghostview shows it correctly, I did not check it's internals).
But then gs generates a broken pdf.
Just try a
/usr/bin/gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=a.pdf -f z.ps
with the attached z.ps as an example. I'll attach both z.ps and a.pdf.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: ghostscript 9.01~dfsg-1ubuntu5
ProcVersionSign
Uname: Linux 2.6.38-11-generic x86_64
Architecture: amd64
Date: Wed Jul 27 17:13:18 2011
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
Lpstat:
device for Deskjet-
device for HP-LaserJet-1300: socket:
device for hp-LaserJet-
device for Laser: ///dev/null
device for PDF: cups-pdf:/
MachineType: Gigabyte Technology Co., Ltd. GA-MA78G-DS3H
Papersize: a4
PpdFiles:
PDF: Generic CUPS-PDF Printer
HP-LaserJet-1300: HP LaserJet 1300 Series Postscript (recommended)
hp-LaserJet-
Deskjet-
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/tcsh
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: ghostscript
UpgradeStatus: Upgraded to natty on 2011-05-17 (70 days ago)
dmi.bios.date: 04/03/2008
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F2
dmi.board.name: GA-MA78G-DS3H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSof
dmi.product.name: GA-MA78G-DS3H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
Related branches
Changed in gs-gpl: | |
importance: | Unknown → Medium |
status: | Unknown → Invalid |
Uhm, I just realized that I still can print these files and display them with okular.
Maybe it is not a problem of ghostscript but of evince (which I use as a pdf viewer...)