Using Ghostscript to Scale PDF Files



I need to scale PDF files by a certain percentage whilst ripping to a
raster format like tiffg4 or pxl color. If I attempt to convert the
PDF (841mm x 594mm) directly to the raster format it doesn't scale (or
rotate or shift):
************************MyCommand.CMD**********************************
-dBATCH
-dNOPAUSE
-dSAFER
-r600
-sDEVICE=tiffg4
-sOutputFile=MyTif.tif
-c "<</Policies <</PageSize 5>> >> setpagedevice "
-c "<< 0.5 0.5 scale -90 rotate -2384 0 translate >> setuserparams"
-f MyPDF.PDF
**********************End MyCommand.CMD*****************************

If I first convert the PDF to EPS using epswrite then use a simliar
command file to the above to create the resultant tiffg4 file it
works.

*************************MyCommand1.CMD - PDF-
EPS******************************
-dBATCH
-dNOPAUSE
-dSAFER
-r600
-sDEVICE=epswrite
-sOutputFile=MyEps.EPS
-f MyPDF.PDF
************************End MyCommand1.CMD*************************
*************************MyCommand2.CMD - EPS-
TIFG4******************************
-dBATCH
-dNOPAUSE
-dSAFER
-r600
-sDEVICE=tiffg4
-sOutputFile=MyEps.TIF
-c "<</Policies <</PageSize 5>> >> setpagedevice "
-c "<< 0.5 0.5 scale -90 rotate -2384 0 translate >> setuserparams"
-f MyEps.EPS
************************End MyCommand2.CMD*************************

Not too bad performance-wise for the B&W to tiffg4 but when converting
colour PDFs to EPS the file size blows out to 100's MB resulting in a
huge PXL file.

Is there a way to scale the PDFs directly using the -c switch of
GhostScript ? I have tried many permutations (excpt the right one) but
it appears GS doesn't want to/can't scale a PDF using the above
operators. I can't use fit to page methods as sometimes the scale
needs to accurately set.

Any help would be appreciated.
.



Relevant Pages

  • Re: Using Ghostscript to Scale PDF Files
    ... raster format like tiffg4 or pxl color. ... PDF directly to the raster format it doesn't scale (or ... rotate or shift): ...
    (comp.lang.postscript)
  • Re: Using Ghostscript to Scale PDF Files
    ... raster format like tiffg4 or pxl color. ... PDF directly to the raster format it doesn't scale (or ...
    (comp.lang.postscript)
  • Re: Exporting vector tables to other applications
    ... I can extract ... >the image from the PDF, but this is only a bitmap and does not scale. ...
    (comp.text.tex)
  • Re: PDF scaling
    ... I don't know if the free primopdf program will scale but you can try. ... consider the Tools package no matter which pdf ... my publication is on A7 format and I need to publish it as A5 format. ... With normal printers there is no problem, just set the scaling to 200%, ...
    (microsoft.public.publisher)