{"id":2050,"date":"2020-11-30T08:40:59","date_gmt":"2020-11-30T15:40:59","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=2050"},"modified":"2020-12-01T09:09:50","modified_gmt":"2020-12-01T16:09:50","slug":"list-of-command-line-options-for-all-ephesoft-tools","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/list-of-command-line-options-for-all-ephesoft-tools\/","title":{"rendered":"Command-line Options for Ephesoft Tools"},"content":{"rendered":"
This page lists the command-line options for all applications included in Ephesoft Transact.<\/span><\/p>\n Jump to:<\/strong><\/span><\/p>\n Example <\/strong>(with no encryption key):<\/span><\/p>\n Example <\/strong>(with encryption key):<\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/b><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Example:<\/strong><\/span><\/p>\n Note<\/strong>: To use ImageMagick to convert from PDF to TIFF, you will need to copy the gs32bit <\/strong>files to the gs directory path. Alternatively, this path can be overridden in <Ephesoft_Directory><\/em><\/strong>\\Dependencies\\ImageMagick\\delegates.xml by replacing the following parameter with the complete gs.exe <\/strong>path:<\/span><\/p>\n Example:<\/strong><\/span><\/p>\n\n
\n
\n
\n
\n<\/a>RecoStar Commands<\/span><\/h2>\n
<\/a>HOCR<\/span><\/h3>\n
RecostarPlugin.exe \u201c<rsbatch_file_path><\/em><\/strong>\u201d \u201c<FPR.rsp_file_path><\/em><\/strong>\u201d bd <OCR_core_from_license><\/em><\/strong> \u201c<recostar_license_file_path><\/em><\/strong>\u201d _HOCR.xml <ocrConfidenceSwitch><\/em><\/strong> <deskewSwitch><\/em><\/strong> <encryptionKey><\/em><\/strong> RECOSTAR_HOCR<\/span><\/pre>\n
RecostarPlugin.exe \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI25\\FileList.rsbatch\u201d \u201cF:\\Ephesoft31\\SharedFolders\\BC5\\fixed-form-extraction\\Fpr.rsp\u201d bd 4 \u201cF:\\\\Ephesoft31\\\\Application\/native\/RecostarPlugin\/bin\\RSO2-NET.707\u2033 _HOCR.xml ON OFF OFF RECOSTAR_HOCR<\/span><\/pre>\n
RecostarPlugin.exe \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI26\\FileList.rsbatch\u201d \u201cF:\\Ephesoft31\\SharedFolders\\BC5\\fixed-form-extraction\\Fpr.rsp\u201d bd 8 \u201cF:\\\\Ephesoft31\\\\Application\/native\/RecostarPlugin\/bin\\RSO2-NET.707\u201d _HOCR.xml ON OFF f97beb0a4808f0cd0ce1a8fa7d9b686e RECOSTAR_HOCR<\/span><\/pre>\n
<\/a>TIFF to PDF Conversion<\/span><\/h3>\n
RecostarPlugin.exe \u201c<TifToPDF_rsbatch_file_path><\/em><\/strong>\u201d \u201c<FPR_pdf.rsp_file_path><\/em><\/strong>\u201d pdf <OCR_core_from_license><\/em><\/strong> \u201c<recostar_license_file_path><\/em><\/strong>\u201d \u201c<output_pdf_file_path><\/em><\/strong>\u201d <ocrConfidenceSwitch><\/em><\/strong> <deskewSwitch><\/em><\/strong> <encryptionKey><\/em><\/strong> RECOSTAR_HOCR<\/span><\/pre>\n
RecostarPlugin.exe \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI24\\TifToPdf.rsbatchDOC2\u201d \u201cF:\\Ephesoft31\\SharedFolders\\BC5\\fixed-form-extraction\\FPR_Pdf.rsp\u201d pdf 4 \u201cF:\\\\Ephesoft31\\\\Application\/native\/RecostarPlugin\/bin\\RSO2-NET.707\u201d \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI24\\tempfile_BI24_documentDOC2.pdf\u201d OFF OFF OFF RECOSTAR_HOCR<\/span><\/pre>\n
<\/a>PDF to TIFF Conversion<\/span><\/h3>\n
SaveImage.exe \u201c<\/span><pdf_file_path><\/i><\/b>\u201d <\/span><compressionRatio> <append_padding_in_file_name(T\/F)> <path_of_output_folder> <Resolution (optional)><\/i><\/b><\/span><\/pre>\n
SaveImage.exe \"F:\\Ephesoft\\SharedFolders\\sample-batches\\multiPagePdf\\multipage-pdf.pdf\" 50 true \"F:\\Ephesoft\\SharedFolders\\sample-batches\\multiPagePdf\" -Rdpi=300<\/span><\/pre>\n
SaveImage.exe \"F:\\Ephesoft\\SharedFolders\\sample-batches\\multiPagePdf\\multipage-pdf.pdf\" 50 true \"F:\\Ephesoft\\SharedFolders\\sample-batches\\multiPagePdf\"<\/span><\/pre>\n
<\/a>Extraction<\/span><\/h3>\n
RecostarPlugin.exe \u201c<rsbatch_file_path><\/em><\/strong>\u201d \u201c<extraction_rsp_file_path><\/em><\/strong>\u201d xml <OCR_core_from_license><\/em><\/strong> \u201c<recostar_license_file_path><\/em><\/strong>\u201d ++++ <ocrConfidenceSwitch><\/em><\/strong> <deskewSwitch><\/em><\/strong> <encryptionKey><\/em><\/strong> RECOSTAR_HOCR<\/span><\/pre>\n
RecostarPlugin.exe \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI2A\\aaaa.rsp.rsbatch\u201d \u201cF:\\Ephesoft31\\SharedFolders\\BC4\\fixed-form-extraction\\aaaa.rsp\u201d xml 4 \u201cF:\\\\Ephesoft31\\\\Application\/native\/RecostarPlugin\/bin\\RSO2-NET.707\u201d ++++ OFF OFF OFF RECOSTAR_HOCR<\/span><\/pre>\n
\n<\/a>Ghostscript Commands<\/span><\/h2>\n
<\/a>PDF to TIFF Conversion<\/span><\/h3>\n
gswin64c.exe -dNOPAUSE -r300 -sDEVICE=tiffscaled24 -sCompression=lzw -dBATCH -sOutputFile=\u201d<output_tiff_filename><\/em><\/strong>-%04d.tif\u201d \u201c<input_pdf_file_path><\/em><\/strong>\u201d<\/span><\/pre>\n
gswin64c.exe -dNOPAUSE -r300 -sDEVICE=tiffscaled24 -sCompression=lzw -dBATCH -sOutputFile=\u201dF:\\Ephesoft31\\SharedFolders\\mailroom-import-copy1\\multipage-pdf-pdf-1407824575554\\multipage-pdf-%04d.tif\u201d \u201cF:\\Ephesoft31\\SharedFolders\\mailroom-import-copy1\\multipage-pdf-pdf-1407824575554\\multipage-pdf.pdf\u201d<\/span><\/pre>\n
<\/a>PDF Optimization<\/span><\/h3>\n
gswin64c.exe -q -dNODISPLAY -P- -dSAFER -dDELAYSAFER \u2014 pdfopt.ps \u201c<input_pdf_file_path><\/em><\/strong>\u201d \u201c<output_pdf_file_path><\/em><\/strong>\u201d<\/span><\/pre>\n
gswin64c.exe -q -dNODISPLAY -P- -dSAFER -dDELAYSAFER \u2014 pdfopt.ps \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI25\\tempfile_BI25_documentDOC1.pdf\u201d \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI25\\BI25_documentDOC1.pdf\u201d<\/span><\/pre>\n
\n<\/a>ImageMagick Commands<\/span><\/h2>\n
Convert.exe <conversion_param><\/em><\/strong> \u201c<input_file_path><\/em><\/strong>\u201d \u201c<output_file_path><\/em><\/strong>\u201d<\/span><\/pre>\n
<\/a>TIFF to TIFF Conversion<\/span><\/h3>\n
Convert.exe -limit area 100mb \u201cF:\\Ephesoft31\\SharedFolders\\mailroom-import-copy2\\us-invoice\\US-Invoice.tif\u201d -compress LZW \u201cF:\\Ephesoft31\\SharedFolders\\mailroom-import-copy2\\us-invoice\\US-Invoice-%04d.tif\u201d<\/span><\/pre>\n
<\/a>TIFF to PNG Conversion<\/span><\/h3>\n
Convert.exe \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI23\\BI23_0.tif\u201d -colorspace gray -alpha off \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI23\\BI23_PG0.png\u201d<\/span><\/pre>\n
Convert.exe \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI23\\BI23_0.tif\u201d -colorspace rgb -thumbnail 200\u00d7150 \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI23\\BI23_PG0_displayThumb.png\u201d<\/span><\/pre>\n
<\/a>Colored TIFF to PDF Conversion<\/span><\/h3>\n
Convert.exe test.tif -quality 100.0 -compress LZW out.pdf<\/span><\/pre>\n
<\/a>Non-colored TIFF to PDF Conversion<\/span><\/h3>\n
Convert.exe test.tif -quality 100.0 -monochrome -compress LZW out.pdf<\/span><\/pre>\n
<\/a>PDF to TIFF Conversion<\/span><\/h3>\n
Convert.exe -limit area 100mb \u201cF:\\Ephesoft31\\SharedFolders\\BC4\\test-classification\\multipage-pdf.pdf\u201d -compress LZW \u201cF:\\Ephesoft31\\SharedFolders\\BC4\\test-classification\\multipage-pdf-%04d.tif\u201d<\/span><\/pre>\n
@PSDelegate@<\/span><\/pre>\n
\n<\/a>Tesseract HOCR Command<\/span><\/h2>\n
TesseractConsole.exe \u201c<input_TIFF_file_path><\/em><\/strong>\u201d \u201c<output_html_file_path_without_.html_extension><\/em><\/strong>\u201d \u201c-l eng\u201d +\u201d<hocr.txt_file_path><\/em><\/strong>\u201d<\/span><\/pre>\n
TesseractConsole.exe \u201dF:\\\\Ephesoft31\\\\Application\/native\/Tesseract-OCR\\TesseractConsole.exe\u201d \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI29\\BI29_5.tif\u201d \u201cF:\\Ephesoft31\\SharedFolders\\ephesoft-system-folder\\BI29\\BI29_PG5\u201d \u201c-l eng\u201d +\u201dF:\\\\Ephesoft31\\\\Application\/native\/Tesseract-OCR\\hocr.txt\u201d<\/span><\/pre>\n
\n