Please see my other post to this thread with install steps. GIST is just a way to store files on the web and share them. Go to the gist page in the link, click on the “RAW” button, which shows you all the text you need and copy that a file in the templater templates folder.
Ok, That’s How it’s done. Thank You @TfTHacker, for writing this script. It is very useful to annotate while you are reading something on the web and then Export it into Obsidian later. This way we don’t need to move back and forth from Obsidian and Browser to write notes.
I’ve modified a portion of the template to better suit my own use. I’ve posted a Gist of my version for those who’d prefer it or would like an alternate example of an modification of the template section. Perhaps it may help those who are not as code-savvy puzzle out how they might make their own modifications?
The changes still keep all the relevant data fields, but reorder them and add a bit of formatting to fit the layout and the way I use my Obsidian notebook. In particular, I changed the formatting so that tags in Hypothes.is are turned into [[wikilinks]] rather than #hashtags as in the original. (The original also doesn’t do so well with multi-word tags in Hypothes.is, which I use quite a lot.)
This is amazing. I didn’t know about Hypothes.is, despite having tried a few of its “competitors”. I’m looking forward to playing with it and to have such an easy link to Obsidian will almost certainly make this my “go to” tool. Thank you for your efforts.
The only issue I’ve found with this plugin is if I have annotations on a local PDF file (using Chrome and the Chrome Hypothes.is extension). It crashes. Remove any local PDF annotations and it works again. I’ve not been able to parse the JSON from Hypothes.is yet to see what is fundamentally different.
Not a biggie for me - I generally host PDFs on the cloud - but just thought I’d mention.
Edit: Main difference seems to be the URI/Source which is a fingerprint of the local PDF: e.g. “uri”: “urn:x-pdf:a999faa94eb5eb4efefee1f1e1b519482”
This is a great process. It would be good to include the step by step in your post and/or in the video. As a newbie to Obsidian and Mark Down, these help my note processing go much faster. Just wanted to say thank you!
Hi David, I wanted to ask what cloud solutions one can use to achieve something like getting a raw PDF display in the browser. I am using OneDrive, but I don’t think it redirects you to / give you a raw pdf link in any way. Thanks in advance
Does anyone know a way to do this with my annotations on locally stored pdfs? That would be lovely.
I know I could probably move them to some cloud, but I have no idea which one could work (the most popular ones seem not to)
You can drag and drop .pdf files from your computer into https://docdrop.org/, which is a project built by Hypothes.is, and that should allow you to be able to annotate raw .pdf files within your browser if they’re not hosted elsewhere.
If you’ve annotated local (private) files within your browser using Hypothes.is, you’ll need to find the uri path (a rough equivalent to http address for web pages) for your .pdf file with its “fingerprint” (a long unique number).