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 Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1397413 Title: QPDF: Exception: operation for Name object attempted on object of wrong type To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qpdf/+bug/1397413/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs