New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Skim to extract notes and highlighted text #77
Comments
Is there anything I can do to help you with this, short of learning js myself? |
I am not going to work on this anytime soon but you can give it a shot if you want. I would start by checking out the Skim command line tools. What are the steps to get extracted annotations with skim command line tools (ignoring zotfile for now)? When that works I can give you some hints about adding that to zotfile. |
Okay, I finally found some time to tinker. This method requires running terminal from the directory where the Using Skim's wiki as a guide, here is how I was able to get text extracted. The following are shell commands.
This creates a text file in the same folder as
Alternately, it can output to rtf:
Another option is to specify the output file name and location after the source file:
A different approach entirely that is probably (without respect to whatever advantages it may or may not offer to implementation) not as ideal is possible via Example:
After performing this operation, ZotFile was able to extract annotations from example-embed.pdf. With that said, example-embed.pdf is not an ideal file if the user plans to use Skim to work with it again, since the Skim notes are no longer present. If this approach is easier to implement, though, you could potentially have ZotFile create a temporary embedded PDF, extract annotations, then discard the embedded PDF. The end user wouldn't see any of this happening. |
Looks like good progress. Implementing the whole thing in zotfile would require quit some work in javascript. Is that something you want to look at? |
I have lots of Skim annotations, a fondness for Zotero, and JS knowledge sitting idle. I can't seem to find any guide for Zotfile contributors / desired PR format -- @jlegewie, do you think you could point me where I should start, please? |
I don't really have a desired PR format but I am trying to guide contributes through the code so that their contributions fits in. jlongrc made some progress on using skim to extract annotations (see above). You should take a look at the |
Hello all, |
Skim has command line tools that a) convert embedded PDF annotations to Skim notes and b) writes Skim notes from a PDF file to a .skim file. Using calls to these two command line tools should make it relatively easy to extract pdf annotations and highlighted text using skim. But this solution also only works on mac.
http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=Interaction_with_Skim#SkimNotes_Command_Line_Tool
The
popplerExtractorCall
function in zotfile.js calls an external binary.The text was updated successfully, but these errors were encountered: