ocr2any.exe and corresponding functions

The following are ocr2any.exe parameters and corresponding cases, please ignore the filename part.

 

case "TSP": //Convert color TIFF file to searchable PDF file

    startInfo.Arguments = " -ocr -ocrmode 4 " + sfullPathName + " " + oTrimFullPathName + extArray[0];

    break;

case "PGP": //Convert color PDF file to grayscale PDF file

    startInfo.Arguments = " -ocr -ocrmode 4 -res 72 " + sfullPathName + " " + ofullPathName;

    break;

case "PCP": //Convert color PDF file to a new color PDF file

    startInfo.Arguments = " -ocr -ocrmode 4 -res 72 -bitcount 24 " + sfullPathName + " " + ofullPathName;

    break;

case "DTP": //Deskew TIFF file, apply OCR, output to a new PDF file

    startInfo.Arguments = " -imageopt -ocr -ocrmode 3 " + sfullPathName + " " + oTrimFullPathName + extArray[0];

    break;

case "CPT": //Convert multiple columns PDF file to text file with reading order

    startInfo.Arguments = " " + sfullPathName + " " + oTrimFullPathName + extArray[1];

    break;

case "CTT": //Convert multiple columns TIFF file to text file with reading order

    startInfo.Arguments = " " + sfullPathName + " " + oTrimFullPathName + extArray[1];

    break;

case "PTL":  //Convert multiple columns PDF file to multiple columns text file with physical layout

    startInfo.Arguments = " " + sfullPathName + " " + oTrimFullPathName + extArray[1];

    break;

case "PP0": //Convert scanned PDF file to searchable PDF file with output to text file

    startInfo.Arguments = " -ocr -ocrmode 0 " + sfullPathName + " " + ofullPathName;

    break;

case "PP1": //Convert scanned PDF file to searchable PDF file with OCR PDF pages and insert new text layer under original PDF pages

    startInfo.Arguments = " -ocr -ocrmode 1 " + sfullPathName + " " + ofullPathName;

    break;

case "PP2": //Convert scanned PDF file to searchable PDF file with output to plain text based PDF file

    startInfo.Arguments = " -ocr -ocrmode 2 " + sfullPathName + " " + ofullPathName;

    break;

case "PP3": //Convert scanned PDF file to searchable PDF file with output to OCRed PDF file (BW) with hidden text layer

    startInfo.Arguments = " -ocr -ocrmode 3 " + sfullPathName + " " + ofullPathName;

    break;

case "PP4": //Convert scanned PDF file to searchable PDF file with output to OCRed PDF file (Color) with hidden text layer

    startInfo.Arguments = " -ocr -ocrmode 4 " + sfullPathName + " " + ofullPathName;

    break;

case "EIF": //Extract [X, Y, Width, Height] information for each character from scanned PDF, TIFF, and Image files

    startInfo.Arguments = " -ocr -outboxfile " + sfullPathName + " " + oTrimFullPathName + extArray[1];

    break;

case "ICF": //Insert custom page footer to the bottom of each page in the output text file

    startInfo.Arguments = " -text \"======================== This is the page %PageNumber% of %PageCount% ========================\"  " + sfullPathName + " " + oTrimFullPathName + extArray[1];

    break;

case "TBT": //Convert color TIFF file to Black and White TIFF file without use halftone technology

    startInfo.Arguments = " -bitcount 1 " + sfullPathName + " " + ofullPathName;

    break;

case "TTT": //Convert color TIFF file to Black and White TIFF file with a threshold value

    startInfo.Arguments = " -threshold 240 " + sfullPathName + " " + ofullPathName;

    break;

case "TTO": //Convert color TIFF file to Black and White TIFF file with an Optimized threshold value

    startInfo.Arguments = " -threshold 0 " + sfullPathName + " " + ofullPathName;

    break;

case "TD0": //Convert color TIFF file to Black and White TIFF file with Floyd-Steinberg

    startInfo.Arguments = " -dither 0 " + sfullPathName + " " + ofullPathName;

    break;

case "TD1": //Convert color TIFF file to Black and White TIFF file with Ordered-Dithering (4x4)

    startInfo.Arguments = " -dither 1 " + sfullPathName + " " + ofullPathName;

    break;

case "TD2": //Convert color TIFF file to Black and White TIFF file with Burkes

    startInfo.Arguments = " -dither 2 " + sfullPathName + " " + ofullPathName;

    break;

case "TD3": //Convert color TIFF file to Black and White TIFF file with Stucki

    startInfo.Arguments = " -dither 3 " + sfullPathName + " " + ofullPathName;

    break;

case "TD4": //Convert color TIFF file to Black and White TIFF file with Jarvis-Judice-Ninke

    startInfo.Arguments = " -dither 4 " + sfullPathName + " " + ofullPathName;

    break;

case "TD5": //Convert color TIFF file to Black and White TIFF file with Sierra

    startInfo.Arguments = " -dither 5 " + sfullPathName + " " + ofullPathName;

    break;

case "TD6": //Convert color TIFF file to Black and White TIFF file with Stevenson-Arce

    startInfo.Arguments = " -dither 6 " + sfullPathName + " " + ofullPathName;

    break;

case "TD7": //Convert color TIFF file to Black and White TIFF file with Bayer (4x4 ordered dithering)

    startInfo.Arguments = " -dither 7 " + sfullPathName + " " + ofullPathName;

    break;

case "TRT": //Rotate 45 degree (angle) for TIFF file

    startInfo.Arguments = " -rotate 45 " + sfullPathName + " " + ofullPathName;

    break;

case "TFM": //Apply Deskew, Despeckle and Noise Removal, Black Border Remova, Flip, Mirror, etc. options to TIFF and Image files automatically

    startInfo.Arguments = " -imageopt -flip -mirror " + sfullPathName + " " + ofullPathName;

    break;

case "PTR": //Use Enhanced OCR Engine to extract table objects from scanned PDF file and insert table objects into RTF file

    startInfo.Arguments = " -ocr2 " + sfullPathName + " " + oTrimFullPathName + extArray[2];

    break;

case "PE0": //Use Enhanced OCR Engine to extract table objects from scanned PDF file and insert table objects into Excel XLS file (One big sheet + All page sheets)

    startInfo.Arguments = " -ocr2 -ocr2excelmode 0 " + sfullPathName + " " + oTrimFullPathName + extArray[5];

    break;

case "PE1": //Use Enhanced OCR Engine to extract table objects from scanned PDF file and insert table objects into Excel XLS file (All page sheets)

    startInfo.Arguments = " -ocr2 -ocr2excelmode 1 " + sfullPathName + " " + oTrimFullPathName + extArray[5];

    break;

case "PE2": //Use Enhanced OCR Engine to extract table objects from scanned PDF file and insert table objects into Excel XLS file (One big sheet, default mode)

    startInfo.Arguments = " -ocr2 -ocr2excelmode 2 " + sfullPathName + " " + oTrimFullPathName + extArray[5];

    break;

case "PTH": //Use Enhanced OCR Engine to extract table objects from scanned PDF file and insert table objects into HTML document

    startInfo.Arguments = " -oc2 " + sfullPathName + " " + oTrimFullPathName + extArray[3];

    break;

case "AOR": //Auto rotate document

    startInfo.Arguments = " -ocr2 -ocr2aor " + sfullPathName + " " + ofullPathName;

    break;

case "PED": //Convert PDF files to DOC files with Enhanced OCR Engine

    startInfo.Arguments = " -ocr2 " + sfullPathName + " " + oTrimFullPathName + extArray[4];

    break;

case "PEH": //Convert PDF files to HTML files with Enhanced OCR Engine

    startInfo.Arguments = " -ocr2 " + sfullPathName + " " + oTrimFullPathName + extArray[3];

    break;

 

VeryPDF OCR to Any Converter Command Line,

 

https://www.verypdf.com/app/ocr-to-any-converter-cmd/try-and-buy.html#buy

https://www.verypdf.com/dl2.php/ocr2any_cmd.zip

https://www.verypdf.com/app/ocr-to-any-converter-cmd/index.html

 

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!