fuxialexander / org-pdftools

A custom org link type for pdf-tools
GNU General Public License v3.0
336 stars 36 forks source link

Import all annotations except links? #69

Open apc opened 3 years ago

apc commented 3 years ago

First: thanks for this fantastic package!

Next: is there an easy way to have an option, when importing annotations, to include every annotation except for links? I was looking at the definition of org-noter-pdftools-create-skeleton to see if I could figure it out, but my knowledge of elisp being what it is I couldn't really do it.

For my use case, links are generally not worth keeping with my notes, but when I read PDFs using a tablet (or when importing from previously annotated PDFs) I want to be able to import every type of annotation except for links.

I can always manually remove them after import (and with this package I'll be importing fewer and fewer annotations in the future!), so this isn't really a feature request but rather a question whether there's already an easy way to do this.

Charlie-Gordon commented 3 years ago

So you looked in org-noter-pdftools-create-skeleton does this mean the links you want to get rid of is embedded in the outline of the pdf? What kind of links are you talking about?

apc commented 3 years ago

If I call org-noter-pdftools-create-skeleton from an org-noter session, I'm asked whether I want to import the Outline, the Annotations, or Both. If I select 'Annotations', I'm given the option of selecting ALL, or just highlights, or just links, etc. If I select ALL, then I get a link for every active hyperlink in the text of the PDF. I'm trying to find a way to stop that from happening while also importing all highlights, all text notes, etc. I may be missing something here, though....