Following are the commands for Ephesoft’s included applications:

  1.       RECOSTAR HOCRING COMMAND

 

RecostarPlugin.exe “rsbatch file path” “FPR.rsp file path” bd OCR-core-mentioned-in-license “recostar license file path” _HOCR.xml ocrConfidenceSwitch deskewSwitch OFF/encryptionKey RECOSTAR_HOCR

 

Example  –

 

RecostarPlugin.exe “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI25\FileList.rsbatch” “F:\Ephesoft31\SharedFolders\BC5\fixed-form-extraction\Fpr.rsp” bd 4 “F:\\Ephesoft31\\Application/native/RecostarPlugin/bin\RSO2-NET.707” _HOCR.xml ON OFF OFF RECOSTAR_HOCR

 

RecostarPlugin.exe “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI26\FileList.rsbatch” “F:\Ephesoft31\SharedFolders\BC5\fixed-form-extraction\Fpr.rsp” bd 8 “F:\\Ephesoft31\\Application/native/RecostarPlugin/bin\RSO2-NET.707” _HOCR.xml ON OFF f97beb0a4808f0cd0ce1a8fa7d9b686e RECOSTAR_HOCR

 

  1.       RECOSTAR TIFF TO PDF CONVERSION COMMAND

 

RecostarPlugin.exe “TifToPDF rsbatch file path” “FPR_pdf.rsp file path” pdf OCR-core-mentioned-in-license “recostar license file path” “output pdf file path” OFF OFF OFF RECOSTAR_HOCR

 

Example  –

 

RecostarPlugin.exe “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI24\TifToPdf.rsbatchDOC2” “F:\Ephesoft31\SharedFolders\BC5\fixed-form-extraction\FPR_Pdf.rsp” pdf 4 “F:\\Ephesoft31\\Application/native/RecostarPlugin/bin\RSO2-NET.707” “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI24\tempfile_BI24_documentDOC2.pdf” OFF OFF OFF RECOSTAR_HOCR

 

  1.       RECOSTAR PDF TO TIFF CONVERSION COMMAND

 

saveimage.exe “pdf file path” compressionRatio appendPadding

 

Example-

 

saveimage.exe “pdf file path” 70 true

saveimage.exe “pdf file path” 10 false

 

 

 

 

  1.       RECOSTAR EXTRACTION COMMAND

 

RecostarPlugin.exe “rsbatch file path” “extraction rsp file path” xml OCR-core-mentioned-in-license “recostar license file path” ++++ OFF OFF OFF RECOSTAR_HOCR

 

Example-

 

RecostarPlugin.exe “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI2A\aaaa.rsp.rsbatch” “F:\Ephesoft31\SharedFolders\BC4\fixed-form-extraction\aaaa.rsp” xml 4 “F:\\Ephesoft31\\Application/native/RecostarPlugin/bin\RSO2-NET.707” ++++ OFF OFF OFF RECOSTAR_HOCR

 

  1.       GHOSTSCRIPT PDF TO TIFF CONVERSION COMMAND

 

gswin64c.exe -dNOPAUSE -r300 -sDEVICE=tiffscaled24 -sCompression=lzw -dBATCH -sOutputFile=”output-tiff-filename-%04d.tif” “input pdf file path”

 

Example-

 

gswin64c.exe -dNOPAUSE -r300 -sDEVICE=tiffscaled24 -sCompression=lzw -dBATCH -sOutputFile=”F:\Ephesoft31\SharedFolders\mailroom-import-copy1\multipage-pdf-pdf-1407824575554\multipage-pdf-%04d.tif”  “F:\Ephesoft31\SharedFolders\mailroom-import-copy1\multipage-pdf-pdf-1407824575554\multipage-pdf.pdf”

 

  1.       GHOSTSCRIPT PDF OPTIMIZATION COMMAND

 

gswin64c.exe -q -dNODISPLAY -P- -dSAFER -dDELAYSAFER — pdfopt.ps “input pdf file path” “output pdf file path”

 

Example-

 

gswin64c.exe -q -dNODISPLAY -P- -dSAFER -dDELAYSAFER — pdfopt.ps “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI25\tempfile_BI25_documentDOC1.pdf” “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI25\BI25_documentDOC1.pdf”

 

  1.       IMAGEMAGICK COMMANDS

 

Convert.exe conversion-param “input-file-path” “output-file-path”

 

Example-

 

[TIFF TO TIFF Conversion] Convert.exe  -limit area 100mb “F:\Ephesoft31\SharedFolders\mailroom-import-copy2\us-invoice\US-Invoice.tif” -compress LZW “F:\Ephesoft31\SharedFolders\mailroom-import-copy2\us-invoice\US-Invoice-%04d.tif”

[TIFF TO PNG Conversion] Convert.exe  “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI23\BI23_0.tif” -colorspace gray -alpha off “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI23\BI23_PG0.png”

[TIFF TO PNG Conversion] Convert.exe   “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI23\BI23_0.tif” -colorspace rgb -thumbnail 200×150 “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI23\BI23_PG0_displayThumb.png”

[COLORED TIFF TO PDF Conversion] Convert.exe   test.tif -quality 100.0 -compress LZW out.pdf

[NON-COLORED TIFF TO PDF Conversion] Convert.exe   test.tif -quality 100.0 -monochrome -compress LZW out.pdf

[PDF TO TIFF Conversion] Convert.exe -limit area 100mb “F:\Ephesoft31\SharedFolders\BC4\test-classification\multipage-pdf.pdf” -compress LZW “F:\Ephesoft31\SharedFolders\BC4\test-classification\multipage-pdf-%04d.tif”

Note: In Ephesoft we are not using ImageMagick to convert from PDF to TIFF and if someone has to do that through external command then the one will need to copy the gs32bit files to gs directory path.

or

This path can be overridden in <Ephesoft>\Dependencies\ImageMagick\delegates.xml by replacing  @PSDelegate@ with the complete gs exe path which need to be executed as Imagemagick contructs this path from registry entry in “HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\GPL Ghostscript”.

 

  1.       TESSERACT HOCR COMMAND

 

TesseractConsole.exe “input TIFF file path” “output html file path without .html extension” “-l eng” +”hocr.txt file path”

 

Example-

“F:\\Ephesoft31\\Application/native/Tesseract-OCR\TesseractConsole.exe” “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI29\BI29_5.tif” “F:\Ephesoft31\SharedFolders\ephesoft-system-folder\BI29\BI29_PG5”  “-l eng” +”F:\\Ephesoft31\\Application/native/Tesseract-OCR\hocr.txt”

 

  1.       ZXING COMMAND TO EXTRACT BARCODE VALUE

ZXing does not work on tiff file, but it works on PNG file.

 

java -cp zxing-1.6.0.jar;.; com.google.zxing.client.j2se.CommandLineRunner “png file path”

 

Example-

hasdf

 

 

 

 




Was this article helpful to you?

J.D. Abbey