Skip to content

Commit

Permalink
Improve "PDF/A conversion failed" message
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Aug 10, 2024
1 parent 1225269 commit cd910fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ocrmypdf/_pipelines/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ def report_output_pdf(options, start_input_file, optimize_messages) -> ExitCode:
log.info("Output file is a %s (as expected)", pdfa_info['conformance'])
else:
log.warning(
"Output file is okay but is not PDF/A (seems to be %s)",
"Output file is a valid PDF, but conversion to PDF/A did not "
"succeed (issue: %s)",
pdfa_info['conformance'],
)
return ExitCode.pdfa_conversion_failed
Expand Down

0 comments on commit cd910fb

Please sign in to comment.