How to Convert PDF to TIF Using Ghostscript

Applies to: All versions of Ephesoft Transact

Ephesoft uses Ghostscript to convert PDFs to single-page TIF files for machine learning and image testing. You can run Ghostscript from the command line by performing the following steps.

  1. Navigate to [Ephesoft_Directory]\dependencies\gs\bin (If your system is 32 bit navigate to [Ephesoft_Directory]\dependencies\gs32bit\bin).
  2. Determine which version of Ghostscript you will use:
    • 64bit: gswin64
    • 64bit: gswin64c
    • 32bit: gswin32
    • 32bit: gswin32c
  3. Open the command prompt as administrator and enter the following command:
[Ephesoft_Directory]\Dependencies\gs\bin\gswin64c.exe -dNOPAUSE -r300 -sDEVICE=tiffscaled24 -sCompression=lzw -dBATCH -sOutputFile="<output_tiff_filename>-04%d.tif" "<input_pdf_file_path>">result.txt

After executing the command, files are sent to the folder specified for output. You can use these files for machine learning and testing.

For an extended list of command-line options for Ghostscript and other third-party tools, refer to Command-line Options for Ephesoft Tools.