We softly depend on ocrmypdf here: https://github.com/okfde/django-filingcabinet/blob/d27b0a823e72cb0e854dd961fdb2cdfa8b417907/src/filingcabinet/pdf_utils.py#L368 I suggest simply adding the Python package to the dependencies and directly using its API instead of a CLI workaround.