The problem is that the root object of the pages tree does not have a /Type key in its dictionary. The PDF spec says that /Type is required and must be /Pages for the root.
qpdf could and should handle this particular type of damage or could at least give a better error message for it, but that's the problem in this case. Right now qpdf uses /Type to determine whether a node in the pages tree is a Pages dictionary or Page dictionary, but it could use the presence of /Kids instead, which would probably be a bit more robust since it would handle more types of broken files. It would be a simple change. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to qpdf in Ubuntu. https://bugs.launchpad.net/bugs/1397413 Title: QPDF: Exception: operation for Name object attempted on object of wrong type Status in qpdf package in Ubuntu: New Bug description: Hello. I am trying to print the file at: https://www.dropbox.com/s/a3v7afl7lajolvb/error1.pdf?dl=0 And I get this error: Exception: operation for Name object attempted on object of wrong type running "qpdf error1.pdf --show-pages" I get the same error. Thanks To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qpdf/+bug/1397413/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp