1How to use OCR exe tool
Taking Win64 as an example
(1)Create the directory OCRExeTool and copy the files gsdk_key.txt, gsdk_sn.txt, fsdk_win64.dll, and ocr_win64.exe to the OCRExeTool directory.
   The files gsdk_key.txt, gsdk_sn.txt, fsdk_win64.dll can be obtained from the foxitpdfsdk_*_win.zip package.
(2)Execute command "ocr_win64.exe --help" to view parameter description.
(3)Command Example: ocr_win64.exe -type 0 -input E:/TestFiles/AboutFoxit_ocr.pdf -output E:/TestResult/OCRPDFPage_AboutFoxit_ocr_edit_yes.pdf -engine E:/OCREngine/x64 -lang English -edit yes -is_detect_pictures yes -is_remove_noise yes -is_correct_skew yes -is_enable_text_extraction_mode yes -is_sequentially_process yes -is_auto_overwrite_resolution yes -resolution_to_overwrite 300 -confidence 38 -range 0,2 -ignore_image_width 20 -ignore_image_height 20

2How to use Java to call OCR exe tool
Demo

import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.io.IOException;

public class runexe {
    public static void main(String[] args) {
        try {
            ProcessBuilder processBuilder = new ProcessBuilder();
            
            // Set commands and parameters
            processBuilder.command("E:\\OCRExeTool\\ocr_win64.exe","-type","0","-input","E:\\TestFiles\\AboutFoxit_ocr.pdf","-output","E:\\TestResult\\OCRPDFPage_AboutFoxit_ocr_edit_yes.pdf","-engine","E:\\OCREngine\\x64","-lang","English","-edit","yes","-is_detect_pictures","yes","-is_remove_noise","yes","-is_correct_skew","yes","-is_enable_text_extraction_mode","yes","-is_sequentially_process","yes","-is_auto_overwrite_resolution","false","-resolution_to_overwrite","300","-confidence","38","-range","0,2","-ignore_image_width","20","-ignore_image_height","20");
            
            // Set the working directory
            processBuilder.directory(new File("E:\\OCRExeTool"));
            
            // Redirect input and output
            processBuilder.redirectOutput(ProcessBuilder.Redirect.INHERIT);
            processBuilder.redirectError(ProcessBuilder.Redirect.INHERIT);
            
            // start process
            Process process = processBuilder.start();
            
            // Obtain output stream (if data needs to be input into the program)
            OutputStream outputStream = process.getOutputStream();
            
            // Waiting for the process to complete
            int exitCode = process.waitFor();
            System.out.println("Program execution completed, exit code:" + exitCode);
            
        } catch (IOException | InterruptedException e) {
            e.printStackTrace();
        }
    }
}

3Error code description
 (1)Success: 0
 (2)Unknow_Error: 100
 (3)License_Invalid: 101
 (4)Param_Error: 102
 (5)GSDK_Init_Error: 103
 (6)OCR_Engine_Path_Error: 104
 (7)OCR_Engine_Init_Error: 105
 (8)Doc_Load_Error: 106
