Not signed in (Sign In)
 

Quick Links

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorJoscha
    • CommentTimeJul 14th 2011 edited
     
    ZotFile Reader
    Streamlines process to work with Zotero and your pdf reader applications on tablet computers (iPad, Android tablets etc).

    https://addons.mozilla.org/en-US/firefox/addon/zotfile-reader/

    DONATION
    If you are using this add-on, please consider a donation
    http://www.columbia.edu/~jpl2136/zotfile.html


    DESCRIPTION
    ZotFile Reader is a Zotero plugin that streamlines the process to work with Zotero and your pdf reader applications on tablet computers (iPad, Android tablets etc). Building on my zotfile plugin, this add-on pushes attachments to a folder that syncs with your pdf app (such as a dropbox folder),renames them according to the zotfile rules, automatically checks whether these pdfs have been annotated, and prompts the user whether s/he wants to pull them back into zotero. It also adds a tag to the attachments on the 'reader' so that these attachments can easily be listed through a saved search. In particular, it offers the following functions:

    1) Move Attachment File to Reader
    This function moves the attachment to the reader destination folder specified by the user, renames it according to the zotfile rules, changes the attachment so that it links to the new location, adds the tag '_READ', and adds a time stamp. The folder should be set in the preference dialog and should be a folder that syncs with your tablet (dropbox...). The tag allows the user to easily find the attachments on the reader (you can also add a saved search for this tag). The time stamp is added to the attachment note field so that zotfile reader can recognize when the attachment was modified (e.g. annotated).

    2) Remove Attachment File from Reader
    This function pulls the attachment from the reader and moves it back to it's original place using zotfile's options. The function is similar to zotfile's 'Rename Existing Attachments' function but it also removes the tag.

    3) Scan Reader (accessible through Zotero Actions -> Scan Reader...)
    This functions checks whether any of the attachments on the tablet were updated using the time tag and asks the user whether s/he wants to a) pull the attachment, b) update the time tag, or c) do nothing.

    Background and Foreground Mode
    In background mode, zotfile reader leaves all zotero attachment files where they are and moves copies of the file to the destination folder when you push attachments and replaces the zotero attachment file with this copy when you pull files. Everything happens in the background. The mode is useful when you want to sync the attachment files in your zotero library across multiple computers or when you index your attachments. The disadvantage is that there are two copies of the file.
    The foreground mode moves the attachment file to the destination folder and links to this file from within zotero so that there always is only one copy of your files. You can not, however, sync linked attachments to the zotero server.

    GETTING STARTED
    Here are the steps to get started:
    1) install zotfile 1.6.2 from
    https://addons.mozilla.org/en-US/firefox/addon/zotfile
    2) (optional) change the zotfile renaming options so that you like them.
    3) Set up some folder that syncs with you tablet. One possibility is to get a dropbox account, which syncs with PDF Expert, iAnnotate, etc.
    4) install zotfile reader from
    https://addons.mozilla.org/en-US/firefox/addon/zotfile-reader/
    5) change the destination folder in the zotfile reader options to the folder set up under 3.
    6) (optional) add a saved search with the tag '_READ'
    7) please donate: http://www.columbia.edu/~jpl2136/zotfile.html

    REQUIREMENT
    This add-on requires zotfile 1.6.2 or higher: https://addons.mozilla.org/en-US/firefox/addon/zotfile


    THIS ADD-ON IS UNDER DEVELOPMENT SO..
    This add-on is still actively developed. The next big thing I plan is to integrate the extraction of annotations from pdf files. Because this add-on is still in an early stage, things might substantial change. Although I will put some efforts into the transition from one to the next version, you might have to enter some preferences again or (which is very unlikely) move your attachments again.
    • CommentAuthorajlyon
    • CommentTimeJul 14th 2011
     
    How are annotations currently stored by the apps that provide annotations?
    • CommentAuthorJoscha
    • CommentTimeJul 14th 2011
     
    Most apps save them in the standard PDF format so that they are compatible with Preview/Adobe Reader but the annotation are not added as notes. So the best solution would be to extract the annotations using javascript...
    • CommentAuthorRoxy075
    • CommentTimeJul 14th 2011
     
    Joscha, I am really excited about your plugin. Will the file name change take effect in the Dropbox folder as well? I'd really love it if my file names were the same everywhere, and I dig the format you have created to adjust them in Zotero.
    • CommentAuthorJoscha
    • CommentTimeJul 15th 2011
     
    yes, the plugin uses zotfile's renaming rules to rename and move the file to the dropbox or whatever folder. There is a separate sub-folder option though.
    You can already check it out, by the way. It's just an early version but should be fully functional.
    • CommentAuthormark
    • CommentTimeJul 15th 2011 edited
     
    Cool, that's fast!

    Some questions though about this 0.1 version. I hope you don't mind. If I choose "Push file to reader" it seems to (1) copy the file to my Dropbox folder and (2) delete the attachment and link the file. Then when I choose "Pull file from reader" it gets the attachment back in my library.

    While this works, it seems to presuppose that I'm fine with a linked item during the time that the PDF is on my reader. But there's a problem: when I sync and access my library on another computer, the PDF is not there and the link may or may not work (depending on whether I have my Dropbox folder in the exact same location). Is there a way around this?

    So there are two important downsides to the current implementation:
    1. The whole business of removing attachment from library, linking it, and (when pulling) re-adding it takes a lot of time presumably because this is done via Zotero (and Zotero tries to index the PDF, etc.). Just copying and overwriting files behind the scenes would probably be a lot faster and hence more usable.
    2. It makes it less attractive to just copy a whole bunch of pdfs and ebooks onto my reader, because while they're on my reader, they're not (necessarily) available in my library on all my computers.
    • CommentAuthormark
    • CommentTimeJul 15th 2011
     
    One other comment:

    It would be nice to have a way of syncing the changes without pulling the file back. (I.e. pulling removes the file from my readings folder, but often I just want to update and read on.)

    But that is something for later. Right now it is already a nice tool for organising required readings; the more important things to fix would be the workflow-related issues in my previous post.
    • CommentAuthorJoscha
    • CommentTimeJul 15th 2011
     
    okay, I see the problem. I am neither syncing nor indexing my pdfs... I could provide the following two (or three) user scenarios, which I think would solve the problem:

    1) Leave attachment file in original location and move copy of file to the reader (your suggestions)
    2) Move attachment file from current location to the reader and change attachment type to linked pointing at the new location (current behavior)
    3) Move copy of file to the reader and add an additional linked attachment pointing at the new location.

    Also, can you tell me when zotfile causes zotero to index the pdf? Does that happen when I change an attachment from 'linked' to 'imported'? Does it happen for 'imported' to 'linked'? I am now only taking about the 'Rename Existing Attachment' function.
    • CommentAuthormark
    • CommentTimeJul 15th 2011
     
    Yes, user scenario 1 looks perfect for my kind of workflow, which also involves syncing across multiple clients.

    As far as I can tell, the pdf indexing happens when the attachment is changed from "imported" to "linked" (i.e. when I do a "push") and also when it is changed from "linked" to "imported" (when I do a "pull"), though I'm less sure about the latter. In both these cases there is a lot of harddisk activity and a timeout in exactly the same way as when I import a new PDF by drag and drop, that's how I connected the dots.
    • CommentAuthorRoxy075
    • CommentTimeJul 15th 2011
     
    I just installed the plugin and my pdfs are not syncing with my Dropbox folder at all, even when I choose "Push file to reader." However, I'm not sure what you mean when you say "There is a separate sub-folder option though." My source folder and destination folder are the same folder in my Dropbox. Do you have anyway for me to troubleshoot this in preferences?

    What's more, when I choose "Attach New File(s)", moreover, it attaches every file from the source folder to the entry--should that be happening?
    • CommentAuthormark
    • CommentTimeJul 15th 2011 edited
     
    @Roxy075: Make sure you don't confuse the Zotfile core with the Zotfile Reader addon. "Attach New File(s)" is a Zotfile option that has nothing to do with the reader integration. All the reader integration is supposed to do is pushing files to a designated folder (which can be inside your Dropbox) and pulling them back into Zotero if they've changed.
    • CommentAuthorRoxy075
    • CommentTimeJul 15th 2011
     
    @Mark, I've just installed both, so I'm working to get everything streamlined at present, but I see your point.

    Right now I am having to officially "pull" all of the pdfs from my Dropbox folder (to get them to become links) in order to get the files to return to Dropbox, and I can't seem to get it to do more than one file at a time :/ When I highlight a group, it only pulls the first one... any tips?
    • CommentAuthorJoscha
    • CommentTimeJul 16th 2011
     
    @ mark: I am going to add this.

    @ roxy: Batch renaming should work both for zotfile and zotfile reader and you do not need to 'pull' them when you never pushed them. You can just use the zotfile's rename existing attachment function.
    • CommentAuthorRoxy075
    • CommentTimeJul 16th 2011
     
    @joscha: my problem isn't batch renaming, it's batch pulling. They have all been renamed, but now are solely stored in in Zotero and are no longer in my Drobox folder. How do I get them back in the folder with their new names, without pulling one by one?
    • CommentAuthorJoscha
    • CommentTimeJul 17th 2011
     
    @ mark: Here is a new version with an implementation of two modes (I call them back- and foreground mode). You will have to start again with pushing files to your reader (the best would be if you pull all of them back before you start with this version). Can you test whether it works and report here (maybe also the foreground mode even when you don't plan to use it)?

    http://www.columbia.edu/~jpl2136/zotreader_02.xpi

    @roxy: Batch pulling should work but I still have the impression that there are some misunderstandings. There is nothing to pull if all of your attachments are stored in zotero. Push means to move from the current attachment location to the zotfile READER destination folder (which might be dropbox). Pull means to move them back from the zotfile READER destination folder to the location defined by the zotfile destination folder (which is different from the zotfile READER destination folder). So pulling does not make any sense when they are all stored in Zotero.
    • CommentAuthorRoxy075
    • CommentTimeJul 17th 2011
     
    @Josha It turned out I had an error in the destination folder path and it was failing quietly. Because my source folder and destination folder are the same (my dropbox folder), moreover, it was strangely "pushing" files when I pressed "pull" (though never allowing me to do this batch) and when I pressed "push to reader," nothing happened--all because of an incorrect path. Ideally there should be some sort of error message for if you have the path wrong.

    Thanks for the responses and for the plugin, I think I've finally got things sorted.
    • CommentAuthormark
    • CommentTimeJul 18th 2011 edited
     
    Background pushing and pulling works great; no time-lag! Clever solution, too (I never realised you could add notes to attachments directly like that). Foreground mode works still seems to work the same, including the long delays associated with detaching and re-attaching the item.

    A common use case that is not addressed is the following: (1) I'm pushing a book to my reader (2) I make annotations (3) I want to update my Zotero copy with the annotations, but (4) I also want to keep reading the book on my reader. This would be a case of updating the item without pulling it back. I think it's pretty common for people to (want to) do this.

    Conceivably, this would be a third (middle) option in the Zotfile Reader menu: something like "Sync changes". Presumably, this should also work the other way around: if I update my Zotero copy while the file is checked out, pulling it back should warn me that the file will be overwritten. Right now it doesn't. (But I recognize this is a minority case: if I push a book to my reader, I should be reasonably expected to update it only there until I pull it back in.)
    • CommentAuthormark
    • CommentTimeJul 18th 2011
     
    Is the _READ tag customizable? What is it used for?
    • CommentAuthorJoscha
    • CommentTimeJul 18th 2011
     
    Updating the copy of the file in Zotero is currently possible with the 'Scan Reader...' function (Zotero->Actions->Scan Reader). It's not pushing changes from the copy in zotero to the reader. Maybe I will add some warning if the att file in zotero was also updated.
    I will consider adding another right click menu item although the menu becomes quit populated with zotfile & zotreader stuff.

    The _READ tag has two functions: 1) 'Scan Reader' finds the items on the reader based on that tag, and 2) you can add a saved search to zotero, which allows you to quickly and easily list all the attachments on the reader. Currently, you have to do that manually but I might add some code so that the saved search is added automatically when you install the plugin.
    There is a hidden option to change the tag. It's hidden because changing it will not update the tag for the attachments you have already pushed. So the option should be used with caution.
    • CommentAuthormark
    • CommentTimeJul 18th 2011 edited
     
    Sweet! I overlooked the Scan Reader function. In that case, scratch my proposal. I agree that the context menu is already quite full.

    This seals the deal for me. I'm going to donate. Though before releasing it to a 1.0 version, consider the following (mainly cosmetic) changes:

    1. It is currently possible to push multiple times, creating multiple copies of the file. Pulling back only retrieves the last copy, leaving redundant copies hanging around. Would probably be better to overwrite on a double push, or warn/ask.

    2. Pushing/pulling on top level items already works (great). And it handles multiple PDFs -- even better! If you know how to generate a saved search it would be cool to do so. In any case, include this in the instructions for adding one: Check the options "only show top level items" and "include parent and child items" to show not the PDFs but the top level items.

    3. Let "Scan reader" also pop up information when nothing was done (maybe via of those nice Zotfile information popups in the bottom right corner).

    4. Also, consider rebranding it and (perhaps) repackaging it, either as one extension integrated with ZF, or as a separate extension that will run on its own. I think this is going to attract a lot of attention. For it to be an extension (ZF reader) of an extension (ZF) of an addon (Zotero) is a bit too far-fetched. Maybe "Zotero Reader" is a good general name?

    5. Graceful handling of changing the folder and/or subfolder settings. The default works well enough but once you've done it differently it is somewhat difficult to change.
    • CommentAuthormark
    • CommentTimeJul 19th 2011 edited
     
    6. Use relative Dropbox URLs, with the system-specific part coded in the Zotero Reader settings. This would probably involve sth like a %Dropbox% variable in the PDF text field in background mode, rather than a hardcoded URL as it is now.

    I.e. on PC1 my Dropbox is F:\Dropbox, on PC2 my Dropbox is D:\Work\Dropbox . Allow me to set the Dropbox URL in the settings and take it from there, so that pushing, pulling, and Scan Reader work wherever my Dropbox happens to be (once I have configured that right).

    7. Grey out "Pull from reader" if an item is not on the reader. Grey out "Push to reader" if an item is on the reader (partly addresses point 1 above).
    • CommentAuthormark
    • CommentTimeJul 19th 2011
     
    And if I would rank these suggestions according to importance/urgency, it would be 1+7 - 6 - 3 - 5 - 2 - 4.
    • CommentAuthorJoscha
    • CommentTimeJul 20th 2011
     
    Hi, here is the next version. It includes three new things:
    - Pulling in background mode is now more intelligent. There are now four scenarios: a) Only the file on the reader has changed -> File in Zotero is replaced, and tag is removed; b) Only the file in Zotero has changed -> File on reader is deleted, and tag is removed; c) Both file have changed -> User is prompted; d) Neither the zotero file nor the reader file has changed -> File on reader is deleted, and tag is removed.
    - zotreader now checks whether an item has already been pushed based on the _READ tag. It only allows pushing if the item currently is NOT on the reader so that multiple pushs are avoided. Currently, the user is not prompted whether s/he wants to replace the file on the reader, which I might add later.
    - non intrusive alert if 'Scan Reader' did not find any modified files

    Can someone, presumably mark, test this?

    http://www.columbia.edu/~jpl2136/zotreader_03.xpi
    • CommentAuthormark
    • CommentTimeJul 20th 2011
     
    All works as advertised, thank you! I like the non-intrusive notices. The pulling behaviour is nicely sophisticated now.

    One comment on pushing/pulling: literally disabling (greying out) either option depending on the status of the attachment would save one click. I do understand though that this would make for some extra checks while building the context menu.
    • CommentAuthorJoscha
    • CommentTimeJul 23rd 2011
     
    yes, I agree. Just didn't know how to do it right away but will look into it at some point.

    Anyone here who knows something about java programming? I came across this
    http://ecomware.com/notes/itext-export-annotations
    and was wondering whether I can use it to extract annotations. I have no clue about java though and don't know how to get this running. I just need some external application that I can call from the plugin. So far I only found solutions that extract annotations, which are in a note and not highlighted text.
    • CommentAuthorajlyon
    • CommentTimeJul 24th 2011
     
    I was going through my bookmarked forum threads and found this one: http://forums.zotero.org/discussion/802/

    The user there has what says to be a fully-functional annotation importer, including highlighting, in the form of an import translator. Definitely worth exploring...
    • CommentAuthorJoscha
    • CommentTimeJul 24th 2011
     
    No, that actually does not work. It is only extracting highlights that are copied to a hidden note, which is only possible in Adobe Acrobat with an certain option and not with any other program or PDF App (as far as I know). Most programs I found (such as the Automator function in Mac OS) only do that and it's not helpful for my purposes. Maybe the java solution does that too but I don't know.

    Here is a quote from the discussion you linked to making that point:
    "However, for the Highlights to be extracted, one still has to use Acrobat's option to automatically copy highlighted content into a hidden note (and this is probably not going to change, since everything else would require me to basically rewrite pdf2txt in javascript)."
    • CommentAuthorJoscha
    • CommentTimeJul 26th 2011
     
    The plugin has now been approved by Mozilla. The next version 0.3 is already under review and can be downloaded in advanced from

    https://addons.mozilla.org/en-US/developers/addon/zotfile-reader/versions/

    New features in 0.3
    - More intelligent pulling in background mode
    - zotreader now checks whether an item has already been pushed based on the _READ tag.
    - non intrusive alert if 'Scan Reader' did not find any modified files
    • CommentAuthorJoscha
    • CommentTimeJul 29th 2011 edited
     
    Here is the first test version with 'project folders' - i.e. user specified subfolders. Project folders can be turned on and off through the zotfile preference window.
    This is a test version only and it would be good to get some feedback. Not only whether everything works (background and foreground mode?) but also about the general implementation. I am very open to suggestions. Does it make sense to have an extra window for the project folders? Would it make more sense to integrate the preferences in the main zotfile pref window? Should project folders be turned on by default? etc.

    http://www.columbia.edu/~jpl2136/zotreader_04b1.xpi

    Here is an screenshot that illustrates the new feature:
    http://www.columbia.edu/~jpl2136/zotreader-project-folders.png

    ps: project folders do not work in zotero tab might right now... i hope to fix that soon.
    • CommentAuthorJoscha
    • CommentTimeJul 31st 2011
     
    Here is a second version. Now everything should run smoothly in tab mode too. I have also added the possibility to push based on all the collection an item is in. So there are now two options for project folders"
    a) Project folders based on Zotero collections (automatically created from selected item)
    http://www.columbia.edu/~jpl2136/zotreader-project-folders.png
    b) User defined project folders
    http://www.columbia.edu/~jpl2136/zotreader-project-folders2.png

    Here is the new beta:
    http://www.columbia.edu/~jpl2136/zotreader_04b2.xpi

    Any comments? Any problems?
    • CommentAuthorLubos
    • CommentTimeJul 31st 2011
     
    I really like this idea: http://www.columbia.edu/~jpl2136/zotreader-project-folders.png

    I have just installed the latest beta 0.4b2 and have three comments:
    1.The folder structure offered based on the collections is not in the expected order. Check your PNG above. I would expect that in the path the top collection should come first, then the subcollection, then subsubcollection etc.
    2.Would it be possible to push multiple attachments at once with an option to simply use the first offered folder or all offered folders?
    3.Would be great if this new collection->folder feature could also make it to the Zotfile plugin.
    • CommentAuthorJoscha
    • CommentTimeAug 1st 2011
     
    1) I will change that. I am wondering whether it would also make sense to offer the lower level folders as options even when the item is not in these collections. In the example, that would add '/05_Projects' and '/05_Projects/Event Project'. Does that make sense or is it inconsistent?
    2) I don't really understand what you mean. Right now, it's possible to move multiple attachments at once tot he same folder. It's not possible to move attachments to multiple folders so.
    3) I thought about that. The problem I have is that this would add two expandable menus to the right click menu (one for 'attach new file' and one for 'rename existing att'). I was wondering whether that is getting to much. I am also not sure how to handle the case one someone just wants to import attachments (in which case the folders don't make sense). But generally, I am inclined to add this to zotfile at some point.

    By the way, had anyone tried this on Windows (with the collection based folders). Does it work?
    • CommentAuthorLubos
    • CommentTimeAug 1st 2011
     
    1) For my particular case, I would only offer the collections that the item is actually in.
    2) Sorry, I meant attachments of multiple items. For example, if one goes to My Library and selects a few items that belong to different collections.

    By the way, I am on Windows 7 64bit and it is working well, except for my point 1.
    • CommentAuthorJoscha
    • CommentTimeAug 1st 2011 edited
     
    Here is another version with the following changes:
    - functions are renamed ('move' and 'remove' instead of 'push' and 'pull')
    - folders created from collections are correctly sorted
    - new preference: How to handle attachments that are already on the reader (ignore, prompt, replace)
    - tooltip for menu items includes the folder an item is moved to
    - Bug: folders created from collections should now be correct for more then one subcollections (in the screenshot below, the 'ASR revision' folder was wrong)

    Here is the new beta:
    http://www.columbia.edu/~jpl2136/zotreader_04b3.xpi

    Here are the two options for project folders:
    a) Project folders based on Zotero collections (automatically created from selected item)
    http://www.columbia.edu/~jpl2136/zotreader-project-folders.png
    b) User defined project folders
    http://www.columbia.edu/~jpl2136/zotreader-project-folders2.png


    @Ludos: Currently, you can move the attachments of multiple items but the folders are only created for the collections of the first selected item. I will change that at some point.

    By the way, the max. number of folders is 10 at the moment. Maybe I will change that to 15 or even 20 (but that might get a little long).
    • CommentAuthorLubos
    • CommentTimeAug 1st 2011
     
    Thanks Joscha, the nested subfolders work now as expected.

    For the multiple item selection, I would like to see two new menu items in the "Manage Reader Files" submenu: "Use the first available collection path for each item" and "Use all available collection paths for each item"

    One more thing that may need some thinking is what happens if a user selects an item with an internally stored attachment such as a snapshot of a webpage. In this case it would be sensible to allow the user an option to have an additional subfolder level (configured based on item's metadata) created automatically to avoid file-name conflicts etc.
    • CommentAuthorJoscha
    • CommentTimeAug 1st 2011
     
    I don't really see the value of "Use the first available collection path for each item" because you can simply select the first collection and all items are moved to this folder.
    I also don't think that "Use all available collection paths for each item" makes sense because it would create multiple copies of the same file. These multiple copies just create conflicts when you change the file at multiple locations (e.g. annotate the file).

    There shouldn't be a file-name conflict because these items have different file endings (pdf, jpg etc.). In addition, you can use the option 'use additional subfolders...' and the rule '\%T' to create further sub-folders based on the item type (or other metadata). Currently the logic is [Base folder]/[project folders]/[metadata folders].
    • CommentAuthorLubos
    • CommentTimeAug 1st 2011
     
    I suppose the value would be to have multiple items from different collections copied to their respective subfolders automatically.

    I understand that having this done to all available collection paths for each item will create duplicates but that would be for the user to deal with. Even now, the user can simply repeat the action for the same attachment and choose a different folder.

    The "use additional subfolders" option is indeed a good solution. Although, having this activated only for internal attachments would be a great bonus. I do not follow your comment on file-name conflicts, since internal attachments in multiple items may have the same name. I thought that is why Zotero creates a randomly named subfolder when attaching them.
    • CommentAuthorJoscha
    • CommentTimeAug 6th 2011 edited
     
    Hi, here is a new beta version with lots of changes for user-defined subfolders.

    http://www.columbia.edu/~jpl2136/zotreader_04b6.xpi

    Changes:
    - vastly improved user defined subfolders:
    - improved interface
    - easy to change the order of subfolders
    - when the user changes the location of a subfolder, zotreader provides the option to move the attachment files to the new location

    - 15 instead of 10 max folders
    - lots of other smaller changes and bug fixes

    Any problems with this version? Otherwise I will submit it for review...
    • CommentAuthorJoscha
    • CommentTimeAug 9th 2011 edited
     
    The new version is now under review with some small changes compared to the last beta a updated. The review will take about a week but you can already download 0.4 from here:

    https://addons.mozilla.org/en-US/firefox/addon/zotfile-reader/versions/

    New features
    - sub-folders based on zotero collections (screenshot)
    - user defined sub-folders (screenshot1,screenshot2)
    - redesigned UI (expandable menu to
    - functions are renamed ('move' and 'remove' instead of 'push' and 'pull')
    - restore selection after moving and removing attachments
    - new pref.: confirmation for moving attachments that are already on the reader
    - menu items are disabled if not applicable
    - additional smaller changes and bug-fixes
    • CommentAuthorJoscha
    • CommentTimeAug 14th 2011
     
    The extraction of annotations and highlighted text is pretty much working now. I had to write a c++ command line tool based on the poppler library to accomplish the extraction of highlighted text (note annotations are pretty easy but highlighted text is very complicated). Now I just need to integrate this tool in the plugin AND the c++ program needs to be compiled for different systems. I only have a mac so can anyone do this for other systems?
    • CommentAuthorajlyon
    • CommentTimeAug 14th 2011
     
    I can try to compile and package this for 32-bit Linux systems, though I can't say C++ is my strong suit.
    • CommentAuthorJoscha
    • CommentTimeAug 15th 2011
     
    Great! I will send you an email.
    • CommentAuthorJoscha
    • CommentTimeAug 18th 2011 edited
     
    Hi,

    here is the first version that extracts highlighted text from PDFs. The extraction is currently only working on the mac. There is a good chance that it's not going to work at a different computer but I am hopeful. Can anyone confirm whether it works or not? The extraction can be started manually from any attached pdf or happens automatically when you remove attachments from the tablet.

    Best!

    ps: In general, the quality of the extraction should be pretty good. There are some situation that produce problems though. Note annotations with line breaks is one of them.


    New Features
    - Extraction of annotations and highlights from PDFs (currently only on Mac)
    - empty folders are deleted after changing user-defined subfolders
    - BUG: pop-up menu does not work in second window


    http://www.columbia.edu/~jpl2136/zotreader_05b2.xpi
    • CommentAuthorsamuelas
    • CommentTimeAug 18th 2011
     
    Hi--Firefox tells me that the latest version appears to be corrupted and will not install.
    • CommentAuthorJoscha
    • CommentTimeAug 19th 2011
     
    My FF does not complain... The URL was wrong but your error report sounds like something different, right? Maybe FF doesn't allow binaries in extension packages? Can you confirm that it's not the URL?
    • CommentAuthorsamuelas
    • CommentTimeAug 19th 2011
     
    No, it was just the url, thanks.

    I'm curious about the extraction function, how to access it and what it does.
    • CommentAuthorJoscha
    • CommentTimeAug 19th 2011
     
    Hey, it's a c++ program that extracts all note annotations as well as the highlighted text from your pdf attachments in zotero. You can use it in two ways: a) when you remove an attachment from your tablet, the annotations are automatically extracted and a note is added to your zotero item. b) you can do it manually with any pdf attachment by clicking Manage Reader Files->Extract Annotations in the right click menu.
    At least that is supposed to be the way it works. There are still some cases, which make it fail but it should already work pretty well. At least I hope it does on other macs. It would be good to hear whether it does....
    • CommentAuthorsamuelas
    • CommentTimeAug 19th 2011
     
    It sounds like it will be a fantastic feature. At the moment I'm not getting anything to show up: it does "extract" the annotations, that is to say, it is processing them, but not taking out the data, so I end up with a note that says something like: "Extracted Annotations (Fri, 19 Aug 2011 14:10:46 GMT)" but nothing else.

    Now perhaps it can't read what I'm doing--but it DOES recognize which files have been annotated of course and which haven't. I tested with annotations made with iAnnotate and with Preview--it recognized both but extracted neither. Did I explain this well?
    • CommentAuthorJoscha
    • CommentTimeAug 19th 2011 edited
     
    Pdfs from iAnnotate and Preview should both work...

    There are multiple steps involved and it's important to pinpoint the where exactly the problem is. First, the plugin calls the binary using the location of the pdf and the output text file as an argument. Second, the program does the extraction work and saves a text file. Third, the plugin opens the text file and creates a note for the zotero item. Fourth, the plugin deletes the text file.

    My guess is that the binary still does not work at other macs... :(
    Can you download the file below, extract it and run the file 'ExtractPDFAnnotations-MacIntel'. The terminal should open and tell you something like 'Error: Couldn't open file '': No such file or directory.' You can also pass the path of an annotated pdf as an argument, in which case you should get the annotations printed to the terminal window. If it throws some other error at you, the binary does not work and it would be good to know what the error message is.

    http://www.columbia.edu/~jpl2136/ExtractPDFAnnotations.zip

    ps: and can you post your FF and OS version?
    • CommentAuthorsynoptic
    • CommentTimeAug 20th 2011
     
    Hi there, great plug-in , really helping to streamline my workflow.

    I was wondering if it is currently possible to pull an annotated PDF from the reader but store it as a copy in the Zotero item, rather than have it overwrite the original? Ideally I would like to append a prefix such as 'Annotated_' to the filename in order to differentiate the annotated and non-annotated versions.

    Also, it appears as though the plug-in has problems pulling annotated copies of the files if the 'Use Zotero to Rename' option is set but the files have been pushed without being renamed in the first place. Does that make sense?

    Great work though, exactly the sort of thing that is needed.

Zotero Forums are powered by Vanilla 1.1.5a