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.
Pruppert, zotfile doesn't do anythin automatically. You have to right-click the item and select 'Attach New File' (or 'Manage Att.->Rename Att' for existing attachments). Clicking 'Attach New File' looks int he specified download folder for the most recently modified (i.e. downloaded) file.
[JavaScript Error: "uncaught exception: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://zotfile/content/pdfextract/pdfjs/src/core.js :: getPdf :: line 55" data: no]"]
Any suggestions?
[JavaScript Error: "uncaught exception: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)" location: "JS frame :: chrome://zotfile/content/pdfextract/pdfjs/src/core.js :: getPdf :: line 55" data: no]"]
Any suggestions?
Much of my research involves using PDFs that are not searchable. They are just images of pages. Since I can't highlight the text, I use the sticky note to transcribe the bit of text I want to capture, or to summarize it--and I'm very grateful to the Zotfile feature that lets me extract those notes into Zotero. The problem is, it uses the PDF's page number and not the page number that would need to be cited--the number that was on the original document page. I've used Adobe Professional to apply the proper page numbers to every page in the PDFs (things like page "i" on a table of contents, etc., though the Google Books scans might actually see it as page 8, with all the extra images scanned ahead of it.) But the usable page numbers are not extracted, even though I have it flagged in the Zotfile Preferences--Advanced Tab, to "Use actual article/book chapter page for highlighted text snippets." I am assuming this preference must deal only with highlighted text and not sticky notes--but it matters as much to me that the notes I put on a specific page are tied to the page number that was on the original book or article--and not that it happens to be the 130th page in the Google Books PDF.
I don't know if this is a bug report or a feature request, but it's very important to historians. Otherwise, we have to go to the extracted annotations and change every note, page by page. (But to the Zotfile developers, thanks that you are pulling the text over for us--a great thing. And let me also appeal to you to extract the "Text" items that PDF Expert in Ipad lets you add to a page--probably the same as the "Typewriter" feature in Adobe Professional, which lets you put words on a page that are not buried in a sticky note that has to be opened to be visible.)
@DonnaCoxBaker, "Use actual article/book chapter page for highlighted text snippets" determines the page number based on two things: a) the page in the document (three when you are on the third page), and b) Zotero metadata for 'Pages'. When your annotation is on the third page in an article that ranges from 134-160, zotfile will use page 137 for the annotation. I realize that doesn't really work for books but maybe you can trick it into working more like you want. I also created a ticket for this on github.
Thanks for creating the ticket for pagination help on GitHub requested by Donna Cox Baker. I second the request as a fellow historian - it would be a real help.
@Donna Cox Baker - as a temporary fix, I suggest ending each comment with the page number you are on. That's the best I have been able to do thus far.
Thanks!
I was about to post here and say that I was having trouble extracting annotations, but the problem seems to have resolved itself spontaneously. Yesterday it was coming up with an error message in the lower right hand corner of the screen (it disappeared too quickly for me to note down). Today, it works! Although it still doesn't work with the zotfile-test.pdf oddly enough.
I would suggest a multi-stringed forum, somewhere, if possible -- I have tried to search to see if my question has been asked before, but couldn't really figure it out. Apologies for that.
A question -- is there a size limit on the PDFs that zotfile will extract notes and comments from (with pdf.js)? I notice it is not working on some PDFs, and they seem like longer ones... Smaller sized PDFs are extracting without problem, I think.
fingersandtoes, here are some instructions for reporting bugs such as the problem with zotfile-test.pdf
JonEP, a multi-stringed forum sounds like a good idea but I have a couple of reservations: First, there are rarely responses by other people than myself and moving to a separate forum even decreases the number of people who see the zotfile questions. Second, someone has to maintain the forum and I don't want to invest into that. Third, this forum thread is one of the few ways in which people find zotfile.
Instead, I encourage people to use a FAQ wiki:
https://github.com/jlegewie/zotfile/wiki/FAQ
It would be great if people add stuff to the wiki! When I find time, I might add some information about the extraction of annotations but there is already a lot of stuff in my last replies.
Size limit of PDFs: I don't think that there is any limit but maybe an error makes the extraction crash at a certain page. I suggest that you try the poppler based extraction (if you are using a mac) or split the pdf and try the separate parts. This way you might be able to pin down the problem.
https://addons.mozilla.org/en-US/developers/addon/zotfile/versions
Changes in Zotfile 2.2
- New feature: automatic renaming of attachment files (thanks to Robin Wilson)
- Bug fix: zotfile produced error when trying to move open files on Windows (thanks to Dominik)
I am experiencing some trouble with the modified detection feature iver a dropbox synced folder. The workflow is pretty simple:
1. send files do dropbox folder
2. dropbox syncs with tablet
3. read/annotate on table
4. dropbox syncs again
5. Zotfile does not point any modified files with the Tablet-files-modified custom search.
A bug? Note sure, but possible. My system is zotero + zotfile + FF 13 (portable). The zotero library is in disk c:.
I scanned this forum looking for portable FF use, and could not find references of user with zotero and the portable version.
Some additional, but maybe not relevant info, is the I have set two separate zotero libraries, because I could not find any feasable way to put a single zotero standalone to work with more than a single library.
One zotero library is for papers, managed with chrome + zotero standalone + ZFile. Its medium sized, near 2GB. EVERYTHING IS OK WITH THIS ONE.
The second library is for books, above 3Gb and managed with FFPortable 13/zotero extension/zotfile. THIS IS THE ONE THAT DOES NOT RECOGNIZE MODIFIED FILES!
Considering the main difference in both arrangments is the FFPortable, it is possible that the issue is with zotfile and FF. Can you give some directions on this problems?
Thanks a lot.
I just would like to let you know about the issue.
Thank you.
Samuel
Changes in Zotfile 2.2
- New feature: automatic renaming of attachment files (thanks to Robin Wilson)
- Bug fix: zotfile produced error when trying to move open files on Windows (thanks to Dominik)
first of all, thank you for your powerful addon!
I would like just to report you a couple of "bug" that I found:
1) When you are exporting a file to a tablet directory, your addon is going to insert a command line into the notes window of that specific file like this:
lastmod{1303813244000}; mode{1}; location{[BaseFolder]\European Journal of Medicinal Chemistry\Kaushik et al\Kaushik et al. - 2010 - Design & synthesis of 2-(substituted aryloxy)-5-(s.pdf}; projectFolder{}
If a previous note was existing, it is going to add this command at the end of the note (and that is right!)
The problem comes when you are going to get the file from the tablet directory: in that case everything presents in the note window is deleted (sob!), even though other notes are present before or after the command line inserted by you. is there any way to solve this problem? maybe you could suggest to insert any other notes before the command line and your addon can make a search in the notes and starting to delete stuff after the string "lastmod" for example?
2) Is there any way to let your addon to delete the folders (and/or subfolders that it created during the exporting phase) after the importing action? I mean, after I send articles to the tablet and then I get them back, I have a lot of empty folders that I need to open, to check whether they are empty or not and if yes to delete them.
thank you
1) zotfile uses the attachment note to store information about files on the tablet. It would clearly be better if zotfile did not piggyback on the Zotero database and instead use it's own database. Unfortunately, that won't happen anytime soon. A temporary solution would be that zotfile only deletes zotfile related information from the note, which should be easy to implement (I think it only requires changes in the `clearInfo` function. Here is the ticket). I still won't be able to do it now so feel free to pick it up and sent me a pull request.
2) Zotfile should delete empty tablet folders. At least it deletes user defined tablet folder (but only if there are no other files in the folder). Please describe you problem in more detail (see the zotfile for submitting a bug report).
Thanks for the great add-on! Keith
Keith
Since I had the previously mentioned problem, I made sure that in the Zotfile preferences "General Settings", I have "Use Firefox download folder, and under "Renaming Rules", I have "Use Zotero to Rename". Everything seems to work correctly now. It now places the attachment in the folder specified in the Zotfile preferences. The icon is still the "link" icon rather than the PDF icon, but it works.
Thanks for the excellent support and add-on for Zotero!
I get a "XULRunner has stopped working" error in a dialog box when I try to Extract Annotations from a pdf file. This report was sent immediately after startup following the program crash.
Steps to reproduce:
1. Create a reference and then attach a file directly or with a link
2. Select Manage Attachments / Extract Annotations
Program crashes with above error. I tried turning off all the plugins and extensions but no dice. Also, shut down all but the bare minimum of applications (i.e. virus scanner). Same result. Tried restarting the computer and the application. Same result.
2 screenshots ~ http://bit.ly/PcwuCM, http://bit.ly/PcwtyF
Help?
I work using 3 computers.I use zotero sync for my references, notes, etc, sugarsync for my pdfs, and zotfile to rename and move my file to the sugarsync folder.
I only installed zotfile on one computer, hence, I can only attach and rename pdfs on that computer. Furthermore, I can only double click an item to open the pdf on that computer.
My question is, how can I accomplish this on the other 2 computers? I tried installing zotfile on the other 2 computers but it doesn't work. I suspect its due to the file path of the sugarsync folder.
Any ideas?
Alternatively, you could set up synchronization with symbolic link. See https://zotpad.uservoice.com/knowledgebase/articles/103395-what-is-a-symbolic-link-and-why-should-i-use-one-w
@ allegorical8: I am not sure what is going on and I won't have time to investigate anytime
soon. I can only recommend to update firefox, try on different computers, etc. Maybe that helps to pin down the problem.
@ Star7: mronkko is correct about the syncing of files but what does not sync are linked attachments and certain zotfile settings. So you have to use imported attachments to sync the files across computers using Zotero (that has nothing to do with zotfile though).
Sorry, I'm really unsure what both of you are saying (I'm not really tech savvy).
Do you mean having the zotero storage folders (the one where you "show data directory") on sugarsync and have all 3 computers point to it?
What are imported attachements?
Furthermore, would I experience any errors if I install zotfile on multiple computers and use them in renaming and moving?
All help appreciated. :D