Sorry for the misspelling! So when I try the correct option I get $ ocrmypdf --just_print input.pdf output.pdf Traceback (most recent call last): File "/usr/bin/ocrmypdf", line 11, in <module> load_entry_point('ocrmypdf==4.3.5', 'console_scripts', 'ocrmypdf')() File "/usr/lib/python3/dist-packages/ocrmypdf/__main__.py", line 1521, in run_pipeline pdfa_info = file_claims_pdfa(options.output_file) File "/usr/lib/python3/dist-packages/ocrmypdf/pdfa.py", line 131, in file_claims_pdfa pdf = pypdf.PdfFileReader(filename) File "/usr/lib/python3/dist-packages/PyPDF2/pdf.py", line 1081, in __init__ fileobj = open(stream, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'output.pdf' $
which I don't understand at all - output.pdf is the output file - it shouldn't exist! Or if it does it should either be overwritten, a warning printed, or a confirmation requested. the -n option does the same. However - if I use "output.pdf" as the output file AND it exists AND it is a PDF file (but not a PDF/A) I get $ file *.pdf input.pdf: PDF document, version 1.7 output.pdf: PDF document, version 1.7 $ ocrmypdf --just_print input.pdf output.pdf WARNING - Output file is okay but is not PDF/A (seems to be No XMP metadata) (note: Both input.pdf and output.pdf are the same) BUT - if output.pdf is a PDF/A-2B file I get $ file *.pdf input.pdf: PDF document, version 1.7 output.pdf: PDF document, version 1.5 $ ocrmypdf --just_print input.pdf output.pdf INFO - Output file is a PDF/A-2B (as expected) None of which is what I expected from the man page description -n, --just_print Don't actually run any commands; just print the pipeline. Something isn't right! BTW: the -n and --just_print options aren't listed in the SYNOPSIS section of the man page -- 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