Test pdf files for usability before extracting metadata

cpdf 1.6-1.7 will succeed when extracting pagecount and bookmarks from
an encrypted document, but fail at combination time.  This uses cpdf's
-i flag to read the file in a way that will trigger failure if it's not
combinable.

Also make errors in this area more specific.