Discussion:
PDF to PCL using Ghostscript
(too old to reply)
Stu
2003-10-28 17:39:07 UTC
Permalink
Hi All,

I'm running into a problem converting a PDF file to PCL in a UNIX
environment using GhostScript. During my initial tests in Windows 2K,
I was able to do the conversion, and have the PCL format correctly,
but in the UNIX version something different is happening...

The Problem:
Page is formatted to print in landscape on 8.5" (612p) X 11" (792p)
paper.
In windows, the correct paper size comes out using the following
command line:

gswin32c -sDEVICE=ljet4 -sOutputFile=C:\test.pcl C:\test.pdf

Note that there's no specification of paper size in there at all, and
it works fine.

In Unix The following command line is executed using the EXACT SAME
FILE:

gs -sDEVICE=ljet4 -SOutputFile=test.pcl -dBATCH -dQUIET -dNOPAUSE
test.pdf

The paper size that comes out here is A4 Legal. The pdf files are
EXACTLY the same, and I can't figure out what's going on here. I've
tried using the -g and -r switches as well, but that didn't seem to
help....

Any ideas?

Thanks,
Stu
***@nordstrom.com
Warren Block
2003-10-29 01:01:31 UTC
Permalink
Post by Stu
In Unix The following command line is executed using the EXACT SAME
gs -sDEVICE=ljet4 -SOutputFile=test.pcl -dBATCH -dQUIET -dNOPAUSE
test.pdf
The paper size that comes out here is A4 Legal. The pdf files are
EXACTLY the same, and I can't figure out what's going on here.
Try adding '-sPAPERSIZE=letter'. It sounds like the version of
Ghostscript you are using in Unix was compiled to default to A4 paper.
--
Warren Block * Rapid City, South Dakota * USA
Stuart Weitzman
2003-10-29 03:51:39 UTC
Permalink
Post by Warren Block
Try adding '-sPAPERSIZE=letter'. It sounds like the version of
Ghostscript you are using in Unix was compiled to default to A4 paper.
--
Yeah, tried that, but it seems that it ignores any landscape settings and
any other layout commands in the PDF file.

One thing I have noticed is that the PDF file is generated as 11" X 8.5", so
i tried switching the -g on the command line...

-g792X612

No dice... The printer balked at it.

Any other ideas?

Continue reading on narkive:
Loading...