b***@ville.laval.qc.ca
2008-08-26 13:13:22 UTC
I would like to scale a 36"x32.5" PDF to fit an 11x17 ( tabloid )
page. Additionally I would like to shift ( offset ) the output scaled
PDF. I can accomplish all of this in GSciew through the following
sequence of clicks : Media > 11x17, File > Convert > pdfwrite > Shrink
to fit Page Size, Properties > Page Offset X pts Y pts
This sequence of clicks yields the desired scaled ( from 36"x32.5" to
11"x17") and shifted (X, Y) PDF. How can I achieve the same thing with
a Ghostscript command? I have tried :
@echo off
REM Converts PDF to PDF. Useful for reducing bloated ESRI written PDFs
MD RePDF
FOR %%f IN (*.pdf) DO gswin32 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -
sOUTPUTFILE=RePDF\"%%f" -dPDFSETTINGS=/prepress -dSubsetFonts=false -
dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dDEVICEWIDTHPOINTS=1224 -
dDEVICEHEIGHTPOINTS=792 -dFIXEDMEDIA "%%f"
which yields an unscaled 11x17 PDF with the upper right portion of the
PDF cropped ( chopped ). Any insight would be greatly appreciated. A
google search tells me that psresize can resize a postscript file- can
it also perform a shift? Ideally I would prefer to perform my
conversion entirely within Ghostscript or alternatively with Acrobat
Professional, but any solution is welcome. Thanks!
page. Additionally I would like to shift ( offset ) the output scaled
PDF. I can accomplish all of this in GSciew through the following
sequence of clicks : Media > 11x17, File > Convert > pdfwrite > Shrink
to fit Page Size, Properties > Page Offset X pts Y pts
This sequence of clicks yields the desired scaled ( from 36"x32.5" to
11"x17") and shifted (X, Y) PDF. How can I achieve the same thing with
a Ghostscript command? I have tried :
@echo off
REM Converts PDF to PDF. Useful for reducing bloated ESRI written PDFs
MD RePDF
FOR %%f IN (*.pdf) DO gswin32 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -
sOUTPUTFILE=RePDF\"%%f" -dPDFSETTINGS=/prepress -dSubsetFonts=false -
dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dDEVICEWIDTHPOINTS=1224 -
dDEVICEHEIGHTPOINTS=792 -dFIXEDMEDIA "%%f"
which yields an unscaled 11x17 PDF with the upper right portion of the
PDF cropped ( chopped ). Any insight would be greatly appreciated. A
google search tells me that psresize can resize a postscript file- can
it also perform a shift? Ideally I would prefer to perform my
conversion entirely within Ghostscript or alternatively with Acrobat
Professional, but any solution is welcome. Thanks!