Closed janacht closed 1 year ago
Thanks for the contribution @janacht -- that seems to be very useful.
Is it possible to add a check to ensure pdfinfo
exists prior to using it, and if not, fall back to the old implementation?
Good point, good idea to reduce the number of required external packages. I've updated the pull request to use identify
from ImageMagick instead of pdfinfo
. Also, I've updated the return code handling for identify
and the looped convert
.
Thanks for the updated PR. Merged. Cheers.
For large PDF files,
convert
runs into memory issues, giving error message such asThis pull request therefore proposes to do the conversion page-by-page, avoiding these issues.