Weird problem, with ghostscript and pdf files.
Posted
by kofucii
on Stack Overflow
See other posts from Stack Overflow
or by kofucii
Published on 2010-02-09T14:10:44Z
Indexed on
2010/06/05
20:22 UTC
Read the original article
Hit count: 265
Hello, am using ghostscript to create pdf file from postscript file. My PS file, doesn't have orientation instructions, so when I want to create landscape pdf file, I'm using ghostscript to rotate the page. The problem is, that ghostscript rotates only the first page, and when my pdf file is more than 1 page, the others, are not rotated correctly. Here is the command I'm using:
cat $psinput | gs -sPAPERSIZE=a4 -sDEVICE=pdfwrite -sOuputFile="/tmp/pdf" \
-dAutoRotatePages="/None" -c "<< /Orientation 3 >> setpagedevice" \
90 rotate 0 -595 translate -dNOPAUSE -dEPSCrop -f - -c -quit
Does anybody have an idea how to correct this?
© Stack Overflow or respective owner