[cups.general] Problems printing PDF files through cups.

Kurt Pfeifle k1pfeifle at gmx.net
Thu Sep 27 14:27:22 PDT 2007


Kurt Pfeifle wrote:
> Gerald Britton wrote:
>> here's the file I'm trying to print. 
> 
> 
> I found it already in the meanwhile  :-)
> 
> And I mailed you *my* results, which look perfect for "fitplot to
> Letter".
> 
> 
>> I want to print it landscape,
> 
> 
> No, you don't want to. Honest. :-)
> 
> In 99.99% of cases, it will do the wrong thing when applied to PDF
> file printing. I don't believe your case is amongst the 0.01%  :-)
> 
> 
>> scaled down to fit my page size.  If you can do it for A4 or A3, I
>> should be able to do it for legal
> 
> 
> OK, I'll repeat the test for legal, and let you know the result.

Legal size works as well here. (However, you *must* supply a PPD as
an env variable that has this PageSize defined!).

I ran these command (the PPD I used is a random one on my system
that happens to have a Legal media size defined):

  PPD=/etc/cups/ppd/2dir_lp.ppd \
                               /usr/lib/cups/filter/pdftops \
                               "1" \
                               "kurt" \
                               "kurt" \
                               "1" \
                               "fitplot=true PageSize=Legal" \
                               e002379200.pdf \
                               | tee pdftopsfiltered-fitplotted-legalsized.ps \
                               | /usr/bin/ps2pdf  \
                               -  \
                               pdftopsfiltered-fitplotted-legalsized.pdf

which gave me two files, "pdftopsfiltered-fitplotted-legalsized.p{s,df}".

I got perfectly looking output for each of these; and I'll send them
to you in private mail, so you can proof what you need to proof to
your distro CUPS packagers/wiseacres.

Here are some additional infos about your original PDF file and the
resulting PDF created by my manual run of above command:


Your original PDF:
------------------
kurt at lx50:~> pdfinfo e002379200.pdf
  Creator:        Adobe Acrobat 6.0
  Producer:       Adobe Acrobat 6.0 Image Conversion Plug-in
  CreationDate:   Wed 28 Apr 2004 01:46:26 PM CEST
  ModDate:        Wed 28 Apr 2004 01:46:26 PM CEST
  Tagged:         no
  Pages:          1
  Encrypted:      no
  Page size:      2065.44 x 716.64 pts
  File size:      366339 bytes
  Optimized:      yes
  PDF version:    1.5


PDF after CUPS' pdftops and Ghostscript 8.60's ps2pdf:
------------------------------------------------------
kurt at lx50:~> pdfinfo pdftopsfiltered-fitplotted-legalsized.pdf
  Creator:        Adobe Acrobat 6.0
  Producer:       GPL Ghostscript 8.60
  CreationDate:   Thu 27 Sep 2007 09:06:05 PM CEST
  ModDate:        Thu 27 Sep 2007 09:06:05 PM CEST
  Tagged:         no
  Pages:          1
  Encrypted:      no
  Page size:      612 x 1008 pts
  File size:      408459 bytes
  Optimized:      no
  PDF version:    1.4


That's all I can do for you, for now.

Hope this helps.




-- 
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH  .....................  Hedelfinger Strasse 58
A RICOH Company  ...........................  D-70327 Stuttgart/Germany




More information about the cups mailing list