emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Viewing pdf images


From: Julian M. Burgos
Subject: Re: [O] Viewing pdf images
Date: Thu, 06 Apr 2017 15:02:14 +0000
User-agent: mu4e 0.9.18; emacs 25.1.1

So if I have an org file with links to pdfs, your function will convert
those pdfs to images and also will replace the link to the pdf for the
link to the newly created png?

Kaushal Modi writes:

> On Wed, Apr 5, 2017, 5:21 AM Julian M. Burgos <address@hidden>
> 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.


--
Julian Mariano Burgos, PhD
Hafrannsóknastofnun, rannsókna- og ráðgjafarstofnun hafs og vatna/
Marine and Freshwater Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]