Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deskew and roate but skip ocr? #458

Closed
barrars opened this issue Nov 26, 2019 · 4 comments
Closed

deskew and roate but skip ocr? #458

barrars opened this issue Nov 26, 2019 · 4 comments

Comments

@barrars
Copy link

barrars commented Nov 26, 2019

Describe the issue
I want to deskew and rotate without performing OCR regardless if the pdf has text - is this possible?

  • OS: linux
  • OCRmyPDF Version: latest
@jbarlow83
Copy link
Collaborator

jbarlow83 commented Nov 26, 2019 via email

@barrars
Copy link
Author

barrars commented Nov 27, 2019

I ran python3.6 ~/.local/bin/ocrmypdf --deskew --orce-ocr --tesseract-timeout=0 --rotate-pages input.pdf output.pdf
And I'm getting ocrmypdf: error: unrecognized arguments: --orce-ocr

EDIT
I just removed --ocre-ocr and it works, thank you! Now I just need to figure out why --deskew causes the output pdf to be 4x larger.

love this program I use it a ton!

@barrars barrars closed this as completed Nov 27, 2019
@NassimBentarka
Copy link

@barrars: I think you had a typo on --ocre-ocr, it should be --force-ocr.

@mehmetgogebakan
Copy link

@barrars : here is the answer: ocrmypdf --tesseract-timeout=0 --deskew input.pdf output.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants