PDF2SearchablePDF: Android Termux ARM64 Runtime Error
I have already poppler & in my bin dir pdftoppm exists
I have installed program successfully but this error is at Runtime
~/download $ pdf2searchablepdf in.pdf
pdf2searchablepdf ('pdf2searchablepdf') version 0.5.0
Author = Gabriel Staples
See 'pdf2searchablepdf -h' for more info.
Language = eng
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Converting input PDF (in.pdf) into a searchable PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Creating temporary working directory: "pdf2searchablepdf_temp_20220302-022520.445752464"
Converting input PDF to a bunch of output TIF images inside temporary working directory.
- THIS COULD TAKE A LONG TIME (up to 45 sec or so per page)! Manually watch the temporary
working directory to see the pages created one-by-one to roughly monitor progress.
- NB: each TIF file created is ~25MB, so ensure you have enough disk space for this
operation to complete successfully.
fdsan: attempted to close file descriptor 4, expected to be unowned, actually owned by FILE* 0x7cd2d13018
/data/data/com.termux/files/home/bin/pdf2searchablepdf: line 243: 20786 Aborted pdftoppm $user_password -tiff -r 300 "$pdf_in" "$temp_dir/pg"
ERROR: 'pdftoppm' failed. ret_code = 134
Removing temporary working directory at "pdf2searchablepdf_temp_20220302-022520.445752464".
Done!
/data/data/com.termux/files/home/bin/pdf2searchablepdf: line 239: bc: command not found
Total script run-time: 0 sec (0.000 min).
real 0m0.542s
user 0m0.255s
sys 0m0.074s
I have a working ocrmypdf which also depends on tesseract
https://www.reddit.com/r/termux/comments/t3cvgz/help_install_ocrmypdf_through_pip/hysq36s/?context=3
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 15 (11 by maintainers)
@ElectricRCAircraftGuy u can install on any Android for free https://play.google.com/store/apps/details?id=com.termux&hl=en&gl=US
Its a full fledge Linux within Android, with pip installed i can even run jupyter-notes