Hi,
Using ProcessStartInfo and Process.Start (C#) from a Web Api 2, I'm executing the following:
command:C:\Program Files\PDF24\pdf24-Ocr.exe
arguments:-outputFile C:\Windows\TEMP\__pdfSandwichOUT_e876abc0-7d1d-4b0f-9ca8-172eebca81f4.pdf C:\Windows\TEMP\__pdfSandwich_e876abc0-7d1d-4b0f-9ca8-172eebca81f4.jpg
If I use the WaitForExit method, the HTTP Request crashes without any error (no excpetion).
Can you help me?
Thanks a lot
Adriano
Stefan Ziegler Answered question 2020-12-09
I think you have to consider the time the OCR process is running. Could be that the OCR process takes so many time and the web request time is limited so a few seconds so that the request aborts.
Stefan Ziegler Answered question 2020-12-09