From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Viewing pdf images Date: Wed, 05 Apr 2017 11:52:08 +0000 Message-ID: References: <52f1d2ee-b964-39ac-3c96-674ad7b6137e@yahoo.com> <23B01130-8A78-4B5F-A1EE-392FDADF33F7@ur.rochester.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ebafa69f9c9054c6a06e4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvjU8-0005ZK-Ot for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 07:52:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvjU7-00078C-Iq for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 07:52:24 -0400 Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:34324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvjU7-00077h-74 for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 07:52:23 -0400 Received: by mail-lf0-x22f.google.com with SMTP id z15so6174941lfd.1 for ; Wed, 05 Apr 2017 04:52:23 -0700 (PDT) In-Reply-To: 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" To: "Julian M. Burgos" Cc: emacs-org list , "Doyley, Marvin M." --001a113ebafa69f9c9054c6a06e4 Content-Type: text/plain; charset=UTF-8 On Wed, Apr 5, 2017, 5:21 AM Julian M. Burgos wrote: > Can you clarify the purpose of this function? I understand that > produces an image of each pdf linked to the file. That's correct, but the user can control when that happens by adding that function to the appropriate hook. But the question in > emacs.stackexchange was about displaying pdf's as inline images. Yes, I forgot to change the hook when I updated the whole answer; I have fixed that now. Now the answer shows how to add this function to the before-save-hook. Your function only converts the pdfs into images (and you have to do an > export to achieve that). Well, the function org-include-img-from-pdf is the workhorse here, and it doesn't depend on when you want the PDF to PNG conversion to happen. The "when" depends on the hook you add the function to. You would still would have to add a link to > the image file in order to see it as an inline image. > add a link in order to see it, correct? > I didn't follow that. The user is already adding that. Example: # ()convertfrompdf:t # User needs to have a ./foo.pdf. That will be converted to the below referenced foo.png. [[./foo.png]] When I get to a computer, I'll confirm if the #+CAPTION: and/or #+NAME: is needed for the inline images to show. Above works fine for exports, so I assumed that the inline images should show fine too. -- Kaushal Modi --001a113ebafa69f9c9054c6a06e4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Wed, Apr 5, 2017, 5:21 AM Ju= lian M. Burgos <julian.bur= gos@hafogvatn.is> wrote:
Can= you clarify the purpose of this function?=C2=A0 I understand that
produces an image of each pdf linked to the file.
<= br>
That's correct, but the user can control when that happen= s by adding that function to the appropriate hook.=C2=A0

=C2=A0But
the question in
emacs.stackexchange was about displaying pdf's as inline images.

Yes, I forgot to change the hook when I up= dated the whole answer; I have fixed that now. Now the answer shows how to = add this function to the before-save-hook.=C2=A0

=C2=A0Your
function only converts the pdfs into images (and you have to do an
export to achieve that).

Well, the fu= nction=C2=A0org-include-img-from-pdf is the workhorse here, and it doesn= 9;t depend on when you want the PDF to PNG conversion to happen. The "= when" depends on the hook you add the function to.=C2=A0
=C2=A0 Y= ou would still would have to add a link to
the image file in order to see it as an inline image.
add a link in order to see it, correct?

I didn't follow that. The user is already ad= ding that. Example:

# ()convertfrompdf:t
# User needs to have a ./foo.pdf. That will be converted to the below refe= renced foo.png.
[[./foo.png]]

When I get to= a computer, I'll confirm if the #+CAPTION: and/or #+NAME: is needed fo= r the inline images to show. Above works fine for exports, so I assumed tha= t the inline images should show fine too.=C2=A0


--

Kaushal Modi

--001a113ebafa69f9c9054c6a06e4--