+ Post New Thread
Results 1 to 12 of 12
*nix Thread, Problems printing PDF documents via Cups in Technical; Here's an interesting one. It doesn't seem to happen all the time, the length and content of the PDF doesn't ...
  1. #1

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Problems printing PDF documents via Cups

    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.
    Attached Files Attached Files

  2. #2

    Join Date
    Dec 2007
    Posts
    83
    Thank Post
    2
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Use Foxit Reader!

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    I am using Foxit.

  4. #4
    Shwaa's Avatar
    Join Date
    Dec 2006
    Location
    Hampshire
    Posts
    14
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    16
    Have you tried comparing logs with a similarly size PDF that does work?

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Not yet, I'm waiting for someone to print one.

  6. #6
    Shwaa's Avatar
    Join Date
    Dec 2006
    Location
    Hampshire
    Posts
    14
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    16
    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.

  7. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Cups log level is set to 'debug'.

  8. #8
    Shwaa's Avatar
    Join Date
    Dec 2006
    Location
    Hampshire
    Posts
    14
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    16
    Does it still happen when you print the same file to another printer?

  9. #9

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    here's a log from a pdf that did print ok (same printer too).
    Attached Files Attached Files

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    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.

    Code:
    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 <return> to continue<<
    
    %%BoundingBox: 0 0 0 0
    %%HiResBoundingBox: 0.000000 0.000000 0.000000 0.000000
    %%[Page: 1]%%
    >>showpage, press <return> to continue<<
    
    %%BoundingBox: 72 667 198 727
    %%HiResBoundingBox: 72.377998 667.223980 197.423994 726.245978
    >>showpage, press <return> to continue<<
    
    %%[ Error: undefined; OffendingCommand: Ff ]%%
    GPL Ghostscript 8.61: Unrecoverable error, exit code 1
    Which duplicates the problem CUPS was having.

  11. #11
    Shwaa's Avatar
    Join Date
    Dec 2006
    Location
    Hampshire
    Posts
    14
    Thank Post
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    16
    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?

  12. Thanks to Shwaa from:

    Geoff (30th January 2008)

  13. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Printing problems in IE7
    By Wizwacks in forum Windows Vista
    Replies: 0
    Last Post: 18th July 2007, 05:02 PM
  2. Printing problems in IE7
    By Wizwacks in forum Wireless Networks
    Replies: 2
    Last Post: 18th July 2007, 04:19 PM
  3. Printing problems in SIMS Attendance
    By sidewinder in forum MIS Systems
    Replies: 0
    Last Post: 21st May 2007, 02:26 PM
  4. Replies: 1
    Last Post: 18th April 2007, 08:01 AM
  5. Printing multipage documents on 1 page
    By sahmeepee in forum Windows
    Replies: 2
    Last Post: 5th February 2007, 05:57 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •