I agree that there is a bug with the -n option. From what I understand, it should only simulate the commands, not actually execute them. But the final check on the output.pdf seems to be unconditionally called, even if -n is used. That's why you get an error.
You have to use the verbose option to see more of what ocrmypdf does. Like in my example, -n --verbose 2 will tell you what tasks would be run. What do you expect -n to be doing? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1687308 Title: ocrmypdf program and man page disagree about options To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ocrmypdf/+bug/1687308/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs