diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 923961113b..2e9af99a59 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -2248,6 +2248,14 @@ Zotero.Item.prototype.isEmbeddedImageAttachment = function() { } +/** + * @return {Boolean} - Returns true if item is a stored or linked PDF attachment + */ +Zotero.Item.prototype.isPDFAttachment = function () { + return this.isAttachment() && this.attachmentContentType == 'application/pdf'; +}; + + /** * Returns number of child attachments of item *