Thomas Guignard
2004-10-26 09:17:52 UTC
Hi there
I have a bunch of ps and pdf files with diverse page formats that I
would like to compile in one single file, in DIN-A4 format.
In a first step, I want to create ps files that are all in A4 format.
Here is the gs command-line I have worked out so far (comes mostly from
the pdf2ps script):
gs -q -dNOPAUSE -dBATCH -dSAFER -dFIXEDMEDIA
-sDEVICE=pswrite -sOutputFile=output.ps -sPAPERSIZE=a4 -c save pop -f
input.pdf
Trouble is, despite the PAPERSIZE and FIXEDMEDIA options, if I open
output.ps in gv, it still uses the old bounding box (that is, not A4),
which is no good since it will likely mess up the following steps. And
also, if I display the output.ps in A4, the pages are not centered.
Is there a gs wizard out there that can tell me:
- how to rewrite the bounding box so that it's clean A4 for all output files
- how to center the smaller pages on the new A4 pages
Thanks!
Tom
I have a bunch of ps and pdf files with diverse page formats that I
would like to compile in one single file, in DIN-A4 format.
In a first step, I want to create ps files that are all in A4 format.
Here is the gs command-line I have worked out so far (comes mostly from
the pdf2ps script):
gs -q -dNOPAUSE -dBATCH -dSAFER -dFIXEDMEDIA
-sDEVICE=pswrite -sOutputFile=output.ps -sPAPERSIZE=a4 -c save pop -f
input.pdf
Trouble is, despite the PAPERSIZE and FIXEDMEDIA options, if I open
output.ps in gv, it still uses the old bounding box (that is, not A4),
which is no good since it will likely mess up the following steps. And
also, if I display the output.ps in A4, the pages are not centered.
Is there a gs wizard out there that can tell me:
- how to rewrite the bounding box so that it's clean A4 for all output files
- how to center the smaller pages on the new A4 pages
Thanks!
Tom
--
Thomas Guignard
Laboratory of Electromagnetics and Acoustics
Swiss Federal Institute of Technology, Lausanne
Thomas Guignard
Laboratory of Electromagnetics and Acoustics
Swiss Federal Institute of Technology, Lausanne