![]() & $tool -q -dNOPAUSE -sDEVICE=tiffg4 $param -r300 $pdf. Here is my script: $tool = 'C:\Program Files\gs\gs8.63\bin\gswin32c.exe' If Ghostscript is available on the host computer, ImageMagick can also convert PostScript (or PDF) files to or from a raster format. I wrote a little powershell script to go through a directory structure and convert all pdf files to tiff files using ghostscript. Gs -dNOPAUSE -q -g300x300 -sDEVICE=tiffg4 -dBATCH -sOutputFile=output_file_name.tif input_file_name.pdfįor a large number of files, a simple batch/shell script could be used to convert an arbitrary number of files. Gswin32c -dNOPAUSE -q -g300x300 -sDEVICE=tiffg4 -dBATCH -sOutputFile=output_file_name.tif input_file_name.pdf ![]() Using GhostScript from the command line, I've used the following in the past: I would install ghostscript and read the man page for gs to see what exact options are needed and experiment. has an example for ghostscript: gs -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif foo.pdf -c quit has an example for imagemagick: convert foo.pdf pages-%03d.tiff Are you an IT Pro Creating your account only takes a few minutes. Use Imagemagick, or better yet, Ghostscript. The community is home to millions of IT Pros in small-to-medium businesses.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |