From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Right way to add special processing to images? Date: Thu, 12 Jan 2017 20:59:24 +0100 Message-ID: <87a8awaw2r.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRlX2-0005M1-Tz for emacs-orgmode@gnu.org; Thu, 12 Jan 2017 14:59:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRlWz-0006BC-2e for emacs-orgmode@gnu.org; Thu, 12 Jan 2017 14:59:33 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35981) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRlWy-0006B4-Ro for emacs-orgmode@gnu.org; Thu, 12 Jan 2017 14:59:28 -0500 In-Reply-To: (Kaushal Modi's message of "Thu, 12 Jan 2017 16:53:38 +0000") 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: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > I have this elisp function that I run in org-export-before-processing-hook > that coverts a pdf to png where that png file is already linked in the org > file. Just that the png file did not exist to begin with; it is converted > from pdf at the time of exporting. [Code is at the end of this email.] > > But for that you work, need to add my special keyword "convertfrompdf t" > and I chose "#+HEADER" just before the image link to do that. > [...] > So the question is: Is using #+HEADER for this a good idea? Would the org > devs just a better way to do the same? I basically need to be able to > control per image link if that linked image foo.png needs to be converted > from a foo.pdf. I would simply use a comment with some specific pattern instead of messing with Org syntax. For example, I use the following comments # =C2=A9 Author "title" licence just before image links so as to mark them, collect them and build some special page at the end of a slide with the information. Regards, --=20 Nicolas Goaziou