PDF Translator (Grabber)
Hello there!
I'm brand new to Zotero, started using it just last week. During my initial exploration, I noticed there was no easy way to import PDF files straight from chrome to Zotero, since the right click context menu doesn't work on the PDF reader.
Trying to get around this I modified one of the default translators to support PDF links. I wouldn't call it a "Translator" since I'm not getting any information from the file, just saving it as an attachment to a document with the title as the filename.
I'm not sure if this will be useful to other people, but since I mostly use Zotero in a very "rustic" manner, it's helping me wonders. Where should I share the translator code? Should I submit a pull request? It's incredibly simple, but I haven't seen anything like it around here yet.
Thank you!
I'm brand new to Zotero, started using it just last week. During my initial exploration, I noticed there was no easy way to import PDF files straight from chrome to Zotero, since the right click context menu doesn't work on the PDF reader.
Trying to get around this I modified one of the default translators to support PDF links. I wouldn't call it a "Translator" since I'm not getting any information from the file, just saving it as an attachment to a document with the title as the filename.
I'm not sure if this will be useful to other people, but since I mostly use Zotero in a very "rustic" manner, it's helping me wonders. Where should I share the translator code? Should I submit a pull request? It's incredibly simple, but I haven't seen anything like it around here yet.
Thank you!
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
(And on a supported site, of course, you can just save from the article page using the translator to get the metadata and the PDF, but I assume you know that.)
Doing it your way isn't a good way to go about it, because you can't run Retrieve Metadata from PDF on a child item.
The problem with dragging the favicon or dragging the link on the previous page is that it only works on Windows (currently), or at least it doesn't work on my current Linux setup. That's why I had to come up with this translator, otherwise that is exactly what I would be doing. :) Apart from that, I think that clicking the Zotero icon is much more convenient than dragging and dropping the favicon to another window.
You're right about not being able to run Retrieve Metadata, and that is giving me a bit of headache. At the moment, I'm just dragging the PDF file outside of the parent and running Retrieve Metadata afterwards.
Anyways, this translator is still the only way I can import PDFs to Zotero directly from my browser on my current setup. Do you think it would be a feasible Translator if I figured out how to retrieve the metadata straight from the javascript code?