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

Dev setup missing (a check for) ocrmypdf? #519

Open
bikubi opened this issue Jun 13, 2024 · 0 comments
Open

Dev setup missing (a check for) ocrmypdf? #519

bikubi opened this issue Jun 13, 2024 · 0 comments

Comments

@bikubi
Copy link
Contributor

bikubi commented Jun 13, 2024

Document uploader images-to-PDF conversion failed silently (for me), no warnings.
The POST request is successful, and returns an id with file path to a PDF, but the object+file does not exist, it is immediately removed.

Cause: convert_images_to_pdf_task https://github.com/okfde/froide/blob/main/froide/foirequest/tasks.py#L254 fails because the shell_call to ocrmypdf fails in https://github.com/okfde/django-filingcabinet/blob/main/src/filingcabinet/pdf_utils.py#L388.

I can see a reference to ocrmypdf in dev.nix; locally I had to install it via package manager, plus tesseract language pack(s).

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

1 participant