5

When using Skim I can export any kind of pdf annotations, including highlighted text, to a file.

Is it possible to do the same thing with pdf-tools in Emacs?

sbac
  • 419
  • 5
  • 13
  • I have not tried this but check out this blog post on taking notes with pdf-tools and org-mode. – Kaushal Modi Jul 21 '16 at 14:54
  • I put the code from the blog post in my init.el and then run M-x pdf-annot-markups-as-org-text. It asks for a pdf. I used a pdf with my highlighted annotations but the answer was wrong type argument. Nevertheless I think the answer to my question may be in this blog post. – sbac Jul 21 '16 at 15:33
  • contains some library process pdf https://github.com/temberature/pdf2notes – 天大仝 Mar 26 '22 at 05:44

1 Answers1

10

I don't know if it is possible with pdf-tools, but it is possible with org-noter (https://github.com/weirdNox/org-noter).

Here is a little demonstration:

enter image description here

You call org-noter in the pdf buffer. Then use the org-noter-create-skeleton function to exoprt the highlights to the org-noter notes file.

chriad
  • 396
  • 3
  • 9
  • 2
    When I try org-noter-create-skeleton I receive the message that this command is only possible with pdf-tools. – sbac Apr 21 '19 at 14:29
  • @sbac I ran into this too. By default, org-noter will use DocView. You need to take the extra step to package-install pdf tools. https://github.com/politza/pdf-tools – incandescentman Sep 04 '20 at 18:36
  • To be clear it exports things in the hierarchy "Highlight on page N" -> Contents, Comment. That works fine! It's too bad that "contents" does not mean the same thing in the pdf-annot-list-format... there, Currently supported properties are page, type, label, date and contents... but these contents represent the comment! – Joe Corneli Oct 14 '20 at 11:22