You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
we are using tesseract in our C#/.NET application to add an OCR layer to the PDF document.
The problem is that this code: using (var rendered = ResultRenderer.CreatePdfRenderer(output, tessdata, false)) { ... }
creates an output file with FileShare.Inheritable flag (in the using section). Starting a new process in another thread when executing the using section leads to the process locking the output file also (because of the inheritable flag) So we cannot manipulate the output file anymore (until newly created process dies).
The text was updated successfully, but these errors were encountered:
Hi,
we are using tesseract in our C#/.NET application to add an OCR layer to the PDF document.
The problem is that this code:
using (var rendered = ResultRenderer.CreatePdfRenderer(output, tessdata, false)) { ... }
creates an output file with FileShare.Inheritable flag (in the using section). Starting a new process in another thread when executing the using section leads to the process locking the output file also (because of the inheritable flag) So we cannot manipulate the output file anymore (until newly created process dies).
The text was updated successfully, but these errors were encountered: