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

Document Python API? #114

Closed
mlissner opened this issue Aug 21, 2015 · 1 comment
Closed

Document Python API? #114

mlissner opened this issue Aug 21, 2015 · 1 comment

Comments

@mlissner
Copy link

I could be wrong, but I haven't been able to find documentation for the command itself. Either for the command line API nor for the Python API that looks like it might be coming in 3.0.

Am I blind? If not, this would be great to get. If so, my apologies!

Looks like a great project.

@jbarlow83
Copy link
Collaborator

You can run ocrmypdf --help in 3.0, which prints documentation from main.py.

I believe it's ./OCRmyPDF.sh -h for 2.x.

There isn't really a Python API as yet in 3.0. To be precise, it's not set up so that you can import the ocrmypdf package and then write a Python script for your own custom pipeline. If you want to do something custom, you'd have to edit the ocrmypdf source files yourself. In future releases I will probably move the code in a direction that makes it unnecessary.

For now, I set it up as an importable package is that the Python packaging machinery is for ease of distribution: pip install ocrmypdf is all it should take for someone who has previously installed 2.x.

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

2 participants