ZotFile - Advanced PDF management for Zotero
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.
This discussion has been closed.
Something that could be useful would be an option to rename the original document (with _orig for example) when getting back the annotated PDF from the tablet (option doing the opposite as the one adding the "_annotated"). This would help for viewing by default the annotated document, but still having the original version if one wants to print/send a clean version.
A second reason for this is that getting back and sending again on the tablet would delete the "_annotated" if the option "rename when sending" is enabled (which I did until now).
Also in relation to this an option for updating the computer version without deleting the one on the tablet would be very useful (there are some reviews that I want to keep on the tablet, but still see the modifications on the computer - it is possible to take it back and send it again, but because of the renaming this is not perfect).
Zeitstempel: 08.09.2015 14:35:47
Fehler: ReferenceError: zotfile is not defined
Quelldatei: javascript:%20zotfile
Zeile: 1
I've now tried your suggestion. I've uninstalled Zotfile - restarted Firefox - installed Zotfile - restarted Firefox with no success.
I could create a new Firefox profile and try to get it working there. However, this does not help in identifying which Firefox settings might interfere with the Zotfile extraction feature. I assume it must have something to do with pdf.js
All setting for extensions.zotfile.pdfExtraction.* are default.
The follwowing PDFJS values are user set:
pdfjs.migrationVersion;2
pdfjs.previousHandler.alwaysAskBeforeHandling;true
pdfjs.previousHandler.preferredAction;4
Could any of those settings cause trouble?
sorry if this has been asked before, but due to zotfile forum being one endless discussion this is difficult to establish. My old e-reader broke down, so I changed to a new one (boox m96 running android 4.0.4, on mac OSX laptop). When I now try to send some files to the tablet, zotfile tells me that the file is already on the tablet, and does not send it. However, the file is not on the tablet. I also cannot get it from the tablet. How can I reset zotfile thinking it is already on the tablet?
Note that this only happens with some files, while others can be sent to the tablet without any problem (even those that I have already sent to my old, broken reader)
@migugg -- you can manually remove the _tablet tag for attachments.
thanks for the hint. It does not work. However, I found out a trick that does work, for anyone who has the same problem: If I delete the text that appears in the right hand pane when clicking on the pdf (not in the item view), which says something like:
"lastmod{1410700782000}; mode{1}; location{[BaseFolder]/"title of article".pdf}; projectFolder{}
then it works. For some reason deleting the tag, does not delte this command that gets written by the tag. One needs to delete the command by hand.
best
For the developper: I dont know whether this is possible, but obviously it would make sense if deleting the tag would also delete this text/command.
Here is my description of the behavior from another thread: Thanks for Zotfile. It is a great plugin and I hope it continues to be improved further.
I use Firefox (41.0), ZotFile (4.1.6), Zotero Standalone (4.0.28.6), Windows 7
When trying to extract my annotations, I get a notice “Zotfile: Extracting Annotations…” but then the circle stop after about a quarter, the notice disappears and not extractions are imported into a Zotero note.
I can copy and paste from that document so it should work. Any ideas?
When I searched the internet for other ways to extract documents, it is often mentioned that one has to activate: I wonder how that interacts with ZotFile, which does not seem to require this preference to be selected. Can I activate it or will this create problems with ZotFile?
Thank you for looking into this.
I have no idea why you cannot see it. Should I email it to you?
I see plenty of � symbols in the extracted annotations but I assume it's down to the OCR, right?
ps: The spacing problems are another issue but that's really hard to fix without breaking other pdfs.
Update: got the version off git-hub and it fixed it. THANK YOU!!
Changing them back to 8000 fixed it.
Firefox 41.0.2. 2013 Macbook pro, 16 GB, os 10.11.
Zotfile is incredibly helpful. Thank you for writing it.
The "Use actual article/book chapter page for highlighted text snippets"-option simply adds the first page in the page field of the item in Zotero to the pdf page of the extracted note.
There is no support for the kind of "logical page numbers" that can be encoded in a pdf. It could probably be done though, see this old issue in the issue tracker about this:
https://github.com/jlegewie/zotfile/issues/57
Can you offer any advice on how to start a project like this? My js skills are pretty remedial, but my workflow for pdf's doesn't run easily through Zotero, so I'd love to have the command-line tool. It would likely be useful to others, too.
(another option, possibly easier, would be to expose the zotfile API in such a way that zotxt could send a stream to PDFJS.getPDFannotations and return the output. I'm not quite sure what's involved with that, either, but I'd be willing to investigate it.)
Many thanks in advance!
1. check with what flags zotfile runs pdf.js to extract annotations
2. just download pdf.js from zotfile's github
3. run it with node.js or rhino (it is my understanding that pdf.js text extraction will run in any javascript engine) and the flags from 1.) and pass the output on to a script that puts the annotations in any format you want.
1. You actually get the PDF with annotations back to Zotero. I.e. when you double click on the PDF in Zotero, it opens and you can see your annotations in whichever PDF viewer you're using. If that's not the case, extraction can't work.
2. You do see annotations for the PDF, but they don't extract.
Still not clear which of the two we're referring to, though it sounds like 1?
IN that case, could you describe your workflow a bit more? The "Get from Tablet" method has nothing to do with source or base folder, so it sounds like you're misunderstadning something.
It seems to me, there is some problems with Russian characters in document and folder names.
I choose folder name, that contains a Russian caracters in Custom Source Folder for Attaching new Files on "General Settings" Tab. It's displayed incorrect and a pop-up message "The source folder is not valid. Please change the the source folder under Zotero-Actions-Zotfile Preferences. You might have to use a custom folder." is appears (folder is exists, it's in my home folder and i have a full access rights on this folder).
Other settings are default.
When I tries to rename a PDF File, there is a message "Unknown error! (Click here to copy details about unknown errors to the clipboard)". When I click this message, a string "{}" is appears in clipboard.
(The "Use Zotero to Rename" on Renaming Rules tab is off).
I use Windows 7 x64, Firefox 42.0, Zotero 4.0.28.7 and ZotFile 4.1.7