rapid7/metasploit-framework — pull request #745 by wchen-r7 (2012-08-31 19:12:32+00:00)
Title: Be more clear that we dislike certain PDF templates

When a KeyError or NoMethodError is hit, that means we there's something we want in the PDF template that's actually missing (ie. root, pages, or kids, etc), if that's the case, we reject the template to avoid a possible broken exploit. The user should simply try a different PDF.