asr / pdfname

Name a PDF file using information from the `pdfinfo` command
MIT License
3 stars 0 forks source link

Ugly error message #4

Closed asr closed 7 years ago

asr commented 7 years ago

Nice error message from the pdfinfo command-line tool:

$ pdfinfo empty-file.pdf 
Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

The equivalent error message from pdfname:

$ pdfname empty-file.pdf
ProcessFailure "Error: May not be a PDF file (continuing anyway)\nError: PDF file is damaged - attempting to reconstruct xref table...\nError: Couldn't find trailer dictionary\nError: Couldn't read xref table\n"
pdfname: PDF file or its metadata information is damaged
asr commented 7 years ago

Duplicate of #1.