PDF files with internal errors sometimes do not have format correctly identified

Description

Some PDF files with internal non-fatal errors are not detected to be PDFs by ImageMagick and GraphicsMagick methods. We only look at the first line of identify standard output with these methods, and the errors are placed on standard output for some reason. Solution is to loop through all output lines skipping errors.

Environment

None
Fixed

Assignee

User known

Reporter

User known

Labels

Components

Fix versions

Affects versions

Priority

Major
Configure