From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Org Mode and PDF Notes! Date: Wed, 11 Nov 2015 16:43:52 -0600 Message-ID: <87lha46tsn.fsf@fastmail.fm> References: <877floffyq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwe7Z-0003lH-Ay for emacs-orgmode@gnu.org; Wed, 11 Nov 2015 17:44:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwe7P-0001dI-1I for emacs-orgmode@gnu.org; Wed, 11 Nov 2015 17:44:05 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwe7O-0001cc-SN for emacs-orgmode@gnu.org; Wed, 11 Nov 2015 17:43:54 -0500 In-Reply-To: (Matt Price's message of "Wed, 11 Nov 2015 15:33:52 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Ramon Diaz-Uriarte , Org Mode Matt Price writes: > > I think that there is no standard way of storing the highlight > contents. I chose Repligo over EZPDF because it gives you access to > the text of the highlights! > Okular, I think, stores your annotations in its own database, rather > than in the pdf. You can (I think!) attach the annotations to the pdf > from inside Okular. At leasts, that's what I remember from when I was > looking around. > Repligo stores the highlighted text in the "subject" field of the > annotation. It's possible that the content of the annotation is stored > in some other field, like "content". Maybe you can try: Repligo (as you say) grabs the text in the highlighted region and adds it to the "subject" connected to the highlight. I think it is rather unique in doing so. AFAIK, Okular, pdf-tools, or other android tools (mupdf, xodo reader) do not not do this. In other words, it is thanks of Repligo's previous extraction that the function on Matt's blog is able get the text of the highlighted region. Otherwise, you would need a means of going back into the region highlighted and extracting the embedded text. Pdf-tools doesn't currently extract the text, but it might not be that difficult to modify it to do so, since it already has the bounds of the highlighted region and can select and copy text embedded in the pdf. Best, Matt