Red Hat Bugzilla – Bug 187482
pdftops uses wrong duplex setting, causing GS/evince/cusp to fail displaying/printing.
Last modified: 2007-11-30 17:11:29 EST
Description of problem:
The program pdftops in poppler-0.5.1 sets the duplex option for printers
incorrectly, creating a PS that causes GhostScript to fail. This makes
the PS file unreadable via evince, and unprintable (at least on my printer).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Take a PDF file (see attachment below for a very simple one test.pdf)
2. pdftops test.pdf
3. gs test.ps
gs fails (see error message in attachment).
evince displays the PS file.
Looking into the source code, it seems that poppler-0.5.1/utils/pdftops.cc
does not give correctly the Duplex parameter to
poppler-0.5.1/poppler/PSOutputDev.cc, which causes the latter to be set to
True instead of False in the PS file which is generated.
A simple patch to pdftops.cc solves the problem (see attachment).
Created attachment 127117 [details]
Test PDF file (contains the single word `test').
Created attachment 127118 [details]
GS error messages when trying to process PS file created from test.pdf by pdftops.
Created attachment 127119 [details]
Patch to pdftops.cc that solves the bug for me.
Fixed in 0.5.4-1.fc6.