Bug 301762

Summary: gv prints only first page of some pdf-documents
Product: [openSUSE] openSUSE 10.3 Reporter: Holger Sickenberg <holgi>
Component: PrintingAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Critical    
Priority: P5 - None CC: werner
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: fj-2006-neue-lpo.pdf
herbst-2006-neue-lpo.pdf

Description Holger Sickenberg 2007-08-20 09:47:06 UTC
When I print a pdf document with more than one page gv just prints the first page, no matter if I do select "print document" or mark several pages and "print marked pages".
Comment 1 Johannes Meixner 2007-08-21 06:25:52 UTC
What is "a pdf document"?

Really any PDF or only for some kind of PDF
(e.g. PDF made by a particular application)?

Attach a PDF where it does not work for you.

Does it print for example
/usr/lib/Acrobat7/Reader/help/ENU/Reader.pdf
Comment 2 Holger Sickenberg 2007-08-21 08:05:46 UTC
Created attachment 158615 [details]
fj-2006-neue-lpo.pdf
Comment 3 Holger Sickenberg 2007-08-21 08:06:12 UTC
Created attachment 158616 [details]
herbst-2006-neue-lpo.pdf
Comment 4 Holger Sickenberg 2007-08-21 08:06:41 UTC
Yes, it does print the Reader.pdf
Comment 5 Johannes Meixner 2007-08-24 12:44:29 UTC
I can confirm it with 10.3 beta2
(I run it on x86_64 hardware: caps.suse.de).

gv prints only the first page.

But it works via command line:
  lp -d <queue> fj-2006-neue-lpo.pdf
prints the whole file and
  lp -d <queue> -o page-ranges=2-3,5 fj-2006-neue-lpo.pdf
prints only the specified pages.

Ghostscript shows no errors when I display it
via "gs fj-2006-neue-lpo.pdf".

Therefore it looks like a problem only in gv
and I reassign it to the gv package maintainer.


By the way:
Your PDF files seem to be a bit strange because gv works for Reader.pdf
and furthermore "pdfinfo fj-2006-neue-lpo.pdf" shows that your PDFs are:
"Encrypted: yes (print:yes copy:no change:no addNotes:no)".
Comment 6 Dr. Werner Fink 2007-08-27 15:24:47 UTC
gv depends on the meta information within a document.
Without this meta information nothing goes.  I'm
not going to fix this a gv is a dead package and
there are acroread and xpdf for doing the same job
... btw., how do acroread and xpdf perorm with the
same documents?

Beside this: using an real lpr from an lprng does
the jobs atz least with the firstz attachment.
Also using `cat %s > x.ps' instead of lpr seems
to work.  Maybe the lpr replacement of cups is
somewhat broken.
Comment 7 Holger Sickenberg 2007-08-27 15:33:24 UTC
acroread prints it fine
Comment 8 Dr. Werner Fink 2007-08-27 15:37:34 UTC
Acroread seems to be able to determine cups with the help
of gtk or libcups ... gv is a simple Xtoolkit program.
Nevertheless IMHO the lpr command should work flawless :)
Comment 10 Klaus Singvogel 2007-08-27 16:01:42 UTC
seems that ghostscript crashed in "pswrite" device somehow. werner please dig into it deeper.
Comment 11 Dr. Werner Fink 2007-09-04 14:47:19 UTC
Please try out the ghostscript 8.60 found at
http://download.opensuse.org/repositories/home:/WernerFink/openSUSE_10.2/
or
http://download.opensuse.org/repositories/home:/WernerFink/openSUSE_Factory/
for openSuSE factory aka 10.3
Comment 12 Dr. Werner Fink 2007-09-20 11:57:32 UTC
@Holger: ping ... any feedback on comment #11
Comment 13 Holger Sickenberg 2007-09-25 10:55:11 UTC
Sorry Werner, I'm quite busy with other tasks. Please take the attached file and test it on your own.
Comment 14 Dr. Werner Fink 2007-09-25 11:05:49 UTC
Both file can be viewed and rewritten with pswrite device of ghostscript,
e.g. by the printfing function in gv or the script ps2ps, the new version
8.15.4 of epsgs together with the fixed patch is submitted to STABLE/10.3.

People who want to use this for 10.2 may use
http://download.opensuse.org/repositories/Printing/openSUSE_10.2/