Geoff Posted January 29, 2008 Posted January 29, 2008 Here's an interesting one. It doesn't seem to happen all the time, the length and content of the PDF doesn't seem to be a common factor for instance. Anyhow, here's the error log for one of the troublesome PDF files.pdferrorlog.zip
Shwaa Posted January 29, 2008 Posted January 29, 2008 Have you tried comparing logs with a similarly size PDF that does work?
Geoff Posted January 29, 2008 Author Posted January 29, 2008 Not yet, I'm waiting for someone to print one.
Shwaa Posted January 29, 2008 Posted January 29, 2008 From the log you posted, it looks like ghostscript is having a problem with the file, but you'll have to increase the logging to be sure.
Shwaa Posted January 29, 2008 Posted January 29, 2008 Does it still happen when you print the same file to another printer?
Geoff Posted January 29, 2008 Author Posted January 29, 2008 here's a log from a pdf that did print ok (same printer too).workingpdf.zip
Geoff Posted January 29, 2008 Author Posted January 29, 2008 Ok, got a bit further with this. I wrote a wrapper script for the cups pstops so I could capture a copy of the data going through it. I attempted to print a PDF that I know doesn't work and got a raw postscript dump of the file. If I try and manually parse this with GhostScript I get the following error. root@hermes:~# gs brokenpdf.ps GPL Ghostscript 8.61 (2007-11-21) Copyright (C) 2007 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Loading NimbusMonL-Regu font from /var/lib/defoma/gs.d/dirs/fonts/n022003l.pfb... 2566136 1072901 1561944 277806 1 done. %%[ ProductName: GPL Ghostscript ]%% %%BoundingBox: 84 60 563 725 %%HiResBoundingBox: 84.473997 60.551998 562.805983 724.283978 >>showpage, press to continue<< %%BoundingBox: 0 0 0 0 %%HiResBoundingBox: 0.000000 0.000000 0.000000 0.000000 %%[Page: 1]%% >>showpage, press to continue<< %%BoundingBox: 72 667 198 727 %%HiResBoundingBox: 72.377998 667.223980 197.423994 726.245978 >>showpage, press to continue<< %%[ Error: undefined; OffendingCommand: Ff ]%% GPL Ghostscript 8.61: Unrecoverable error, exit code 1 Which duplicates the problem CUPS was having.
Shwaa Posted January 29, 2008 Posted January 29, 2008 Hmm... The output you are getting is strange, and tends to point to something up with the file itself, or at least something in the file that ghostscript doesn't like. A couple of stupid questions: Does the PDF render properly when you open it with the reader (and can you try it with at least 2 different readers)? It maybe that ghostscript is stricter at reading files that the readers. Also, have you tried "printing" the bad pdf as a pdf and then printing the result? 1
Geoff Posted January 30, 2008 Author Posted January 30, 2008 Fixed. Old version of Foxit is broken. See this thread for details. http://www.foxitsoftware.com/bbs/showthread.php?t=4419 Updating Foxit to 2.2 fixed the problem.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now