Skip to content
This repository has been archived by the owner. It is now read-only.

Fixing the OCR on server-side. #19

Merged
merged 1 commit into from
Aug 21, 2018
Merged

Conversation

christian-oreilly
Copy link
Contributor

For some reasons, the behavior of ocrmypdf seem to have change. Whereas before we were expecting directly the .txt file from it, now it was generating a PDF with the ocr-ed text overlaid to it. This commit fix this issue by overwriting the original scan PDF with a pdf with text overlaid and run the usual pdftotext on this new PDF.

For some reasons, the behavior of ocrmypdf seem to have change. Whereas before we were expecting directly the .txt file from it, now it was generating a PDF with the ocr-ed text overlaid to it. This commit fix this issue by overwriting the original scan PDF with a pdf with text overlaid and run the usual pdftotext on this new PDF.
@pafonta pafonta added the bug label Aug 21, 2018
@pafonta pafonta self-requested a review August 21, 2018 09:53
Copy link
Contributor

@pafonta pafonta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The v5.0+ feature --sidecar should be used instead but it would require to upgrade ocrmypdf, which is not currently in the roadmap. This fix is therefore OK for now. See: #4 (comment).

@pafonta pafonta merged commit 710d283 into master Aug 21, 2018
@pafonta pafonta deleted the christian-oreilly-orc-fix branch August 21, 2018 09:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants