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?