Zotero Connector saves PDF attachments even when disabled
I personally do not want to save snapshots, attachments etc. when saving a website to Zotero. For this reason, I have deselected ‘Automatically take snapshots when creating items from web pages’ and ‘Automatically attach associated PDFs and other files when saving items’ in my Zotero preferences. Yet when I attempt to save a PDF from my web browser (Firefox), Zotero still downloads a local copy of the PDF to the Zotero storage directory. Is this a bug, or a problem with my configuration?
I am using Zotero Connector version 5.0.78 with Zotero 5.0.95.
I am using Zotero Connector version 5.0.78 with Zotero 5.0.95.
If you save a PDF to Zotero…it saves a PDF to Zotero. If you're viewing a PDF, you're not saving a webpage. Are you expecting to click "Save to Zotero" while on a PDF, have it retrieve metadata for that PDF, and then delete the PDF? That doesn't and won't happen.
Those settings control what happens when you save from a webpage — whether Zotero then goes and saves a snapshot of the page and tries to download a PDF. You're not saving from a webpage, so they don't apply, and the text of the settings doesn't imply that they would — it's not an "associated PDF" being automatically attached to an item you're saving if it's the very thing you're saving manually.
The PDF setting in no way prevents you from simply adding PDFs to Zotero, either by dragging them to Zotero or by saving them directly from your web browser. The latter is what you're doing here.
There are a few, rare sites where we're able to use translators from the PDF URL, in which case you'll see a different icon — e.g., a journal article icon. In that case it'd be equivalent to saving from the article page and you wouldn't get the PDF with your settings. But that's only possible on sites where there's an identifier in the PDF URL and the site makes it possible to download metadata based on the identifier. Most sites, and therefore most Zotero translators, don't work that way. And if there's no translator for the site to begin with, it certainly doesn't apply. It's just not technically equivalent. Zotero translators run within the context of webpages. PDFs have to be downloaded and processed.
And technical details aside, the user intent wouldn't be clear — again, there's no real reason to think that just because someone doesn't want a PDF automatically attached from a journal article page it means they don't want to save a PDF when they actually click the save button while viewing a PDF.
(For what it's worth, I can't recall anyone else ever asking for this.)
Somewhat hypothetical question: in my case, I’m actually not particularly interested in any metadata other than the PDF filename and URL — I simply want to be able to use Zotero to manage these links. Given this situation, might it be possible for me to write a bookmarklet which retrieves the name and URL and saves them to Zotero? And if so, is there any documentation I can read to give me some idea as to how to proceed? I hadn’t really considered it this way, but this actually is true — I had been conflating the two situations. Huh, that seems odd to me… I would have imagined this to be a fairly common request. (Maybe it’s because I originally tried to use a custom workflow based around org-mode, and only switched to Zotero later — perhaps I wouldn’t have needed to do this if I had just used Zotero from the very beginning.)