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

Fix compat with windows by adding savefile argument to hocr-pdf #125

Merged
merged 3 commits into from
Jun 5, 2018

Conversation

skylord123
Copy link
Contributor

I couldn't get hocr-pdf to work in windows because it outputs to stdout and windows doesn't handle the latin1 encoding very well (and created corrupt PDFs for me even when using chcp 65001 and set PYTHONIOENCODING=utf-8) . I was able to get this to work by adding an optional argument for which file to save the document to (instead of outputting to stdout).

I would have preferred to use a Linux OS but the company I work for uses windows servers. This update makes it work for both without having to deal with the encoding headache.

@stweil stweil merged commit 95a868c into ocropus:master Jun 5, 2018
@stweil
Copy link
Collaborator

stweil commented Jun 5, 2018

Thank you!

@stweil stweil changed the title Fix compat with windows by adding savefile arguement to hocr-pdf Fix compat with windows by adding savefile argument to hocr-pdf Jun 5, 2018
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

Successfully merging this pull request may close these issues.

2 participants