On Thu, Sep 29, 2005 at 12:28:58AM +0000, Oleg Goldshmidt wrote:
> Israel Shikler <[EMAIL PROTECTED]> writes:
> 
> > > My application is running on RH3 Linux creating output in PDF format.
> > >
> > >
> > > I would like to convert the file to PCL format in order to print on an HP
> > > printer which does not support PostScript.
> > > I have tried to do the conversion the following way:
> > >
> > > /usr/lib/cups/filter/pdftops $JobNum $User $Title $Copies "\"$arg5"\" <
> > > $inputPdf > $tmpFile1

Interesting. They use pdftops (from xpdf) here, rather than pdf2ps (from
GohstScript) here.

> > >
> > > /usr/lib/cups/filter/pstops  $JobNum $User $Title $Copies "\"$arg5\"" <
> > > $tmpFile1 > $tmpFile2
> > >
> > > gs -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=ljet4 -r600 -dpdffitPage
> > > -dFIXEDMEDIA -sOutputFile=$outputPcl $tmpFile2
> > >
> > > The problem is that the PDF created in A4 papersize but after conversion I
> > > am requested to load LETTER paper, and the printout is around 6% smaller
> > > than the original size.
> > >
> > > Any idea what went wrong?
> 
> No, but 
> 
> 1) have you tried -sPAPERSIZE=a4? [see man gs(1)]
> 
>    I have never tried it, just looked at the man page.
> 
> 2) have you tried ImageMagick's convert(1) ?
> 
>    I have never tried converting PDF to PCL, but the man ImageMagick(1)
>    says both formats are handled.

Which delegates the work to gs.

-- 
Tzafrir Cohen         | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |                           | a Mutt's  
[EMAIL PROTECTED] |                           |  best
ICQ# 16849755         |                           | friend

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to