0

I install ocrmypdf on Centos 7.6 that use the way "snapd install ocrmypdf". I have successfully installed completely. However, I execute the command "ocrmypdf input.pdf output.pdf" and always say "InputFileError, input.pdf cannot be found". How can I solve it?

Thanks!

  • Try using the full path to `input.pdf` like `/tmp/input.pdf` – GoinOff Aug 03 '22 at 18:35
  • I tried full path on both source & destination file but still not successful – ThunderBird Aug 04 '22 at 10:15
  • maybe try running with `-v` to see if you can get any more information about the problem. Strange that a full path doesn't work..Funky software... – GoinOff Aug 04 '22 at 13:23
  • 1
    The problem only occurred on snapd way to install on Centos 7.6. If I use dnf install on Fedora, it runs normally without any problem. – ThunderBird Aug 05 '22 at 01:47
  • When I run 'ocrmypdf -v input.pdf output.pdf. It shows ocrmypdf error: argument -v/-verbose: invalid int value: 'input.pdf' – ThunderBird Aug 05 '22 at 14:04
  • Hmmm, maybe verify that that `input.pdf` is actually a valid `.pdf` by opening it with another tool like acrobat reader?? – GoinOff Aug 05 '22 at 14:12
  • The input.pdf is working fine. As I said, it works when I perform OCR on the DNF installed on Ubuntu . – ThunderBird Aug 07 '22 at 14:21

0 Answers0