From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [RFC][ODT] Converting to pdf (or other formats) via odt Date: Fri, 03 Feb 2012 02:29:48 +0530 Message-ID: <81sjitx86z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt3lO-0002bM-KT for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 16:00:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt3lI-0006qn-HL for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 16:00:14 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:41148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt3lH-0006ph-Os for emacs-orgmode@gnu.org; Thu, 02 Feb 2012 16:00:08 -0500 Received: by dadv6 with SMTP id v6so2471495dad.0 for ; Thu, 02 Feb 2012 13:00:06 -0800 (PST) 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: Orgmode Thanks to Giles[1] for introducing us to the "--convert-to" option of soffice.exe. The option seems to be a fairly recent development[2]. With this change, one can export to pdf (or any other popular format) via odt by a simple #+begin_src emacs-lisp (setq org-export-odt-preferred-output-format "pdf") #+end_src There is no need to install additional converters. It is assumed that the user has a working and fairly recent LibreOffice installation. Footnotes: [1] http://imperfectsoftware.blogspot.in/2012/01/one-of-my-less-enjoyable-tasks-is-to.html [2] There seems to be a bunch of fairly recent bugs with this option. So a cutting edge LibreOffice would definitely be needed. http://www.google.co.in/search?q=headless+%22--convert-to%22+site%3Alibreoffice.org&btnG=Search&sclient=psy-ab&hl=en&site=&source=hp&gbv=1&sei=L_gqT97rIMXorAf248C6DA Feedback welcome. --