From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: on the fragility of export to ODT Date: Wed, 18 Feb 2015 15:04:52 +0000 Message-ID: <87vbiz8dm3.fsf@ucl.ac.uk> References: <87r3tp3gv0.fsf@ucl.ac.uk> <87wq3hhalm.fsf@nicolasgoaziou.fr> <87a90c9zsg.fsf@delle7240.chemeng.ucl.ac.uk> <87lhjwuu4y.fsf@nicolasgoaziou.fr> <87oaorczkz.fsf@ucl.ac.uk> <87zj8bpbnk.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO6BS-000615-FP for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 10:05:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO6BM-0002Lf-PV for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 10:05:02 -0500 Received: from mail-am1on0133.outbound.protection.outlook.com ([157.56.112.133]:8828 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO6BM-0002LV-Di for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 10:04:56 -0500 In-Reply-To: <87zj8bpbnk.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 18 Feb 2015 14:55:11 +0100") 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: emacs-orgmode@gnu.org On Wednesday, 18 Feb 2015 at 14:55, Nicolas Goaziou wrote: [...] > Apparently `org-odt-inline-image-rules' dismisses pdf files as images. > What happens if you add PDF extension to the list? Ah ha! Adding pdf to the list of extensions (using customize, not editing the code at this point) enables the exporter to run to completion. This is a great step forward as I can now get a document that I can do something with. The exporter seems to be collecting the images: they end up in the actual ODT file. However, viewing the file in libreoffice shows placeholders where the images should be but with a "Read-Error" message. The captions are there but the images are empty. I guess that libreoffice cannot handle PDF images, which probably shouldn't surprise me... Now that I know what the problem is, I can see a way forward: all of my images are created within the org document using babel and I can have an alternate target of PNG for odt export. I would imagine that the easiest change in org would be to simply have an error message telling the user that PDF files cannot be used as images? Alternatively, would it be possible to invoke imagemagick to convert PDF images to PNG as we do with LaTeX snippets? Thanks for all your help on this, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-843-ga5f1a3.dirty