[Top][All Lists]

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

[debbugs-tracker] bug#14440: closed (Extending ODT export)

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14440: closed (Extending ODT export)
Date: Fri, 15 Nov 2013 04:03:02 +0000

Your message dated Tue, 01 Jan 2002 06:04:59 +0530
with message-id <address@hidden>
and subject line Re: bug#14440: Extending ODT export
has caused the debbugs.gnu.org bug report #14440,
regarding Extending ODT export
to be marked as done.

(If you believe you have received this mail in error, please contact

14440: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14440
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Re: Extending ODT export Date: Wed, 22 May 2013 14:06:34 +0530 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
doc-view (for OpenDocument files) uses the below mentioned work around.

The fix can be ported to `org-odt.el' and `ox-odt.el'.

--8<---------------cut here---------------start------------->8---
(defun doc-view-odf->pdf-converter-soffice (odf callback)
  "Convert ODF to PDF asynchronously and call CALLBACK when finished.
The converted PDF is put into the current cache directory, and it
is named like ODF with the extension turned to pdf."
  ;; FIXME: soffice doesn't work when there's another running
  ;; LibreOffice instance, in which case it returns success without
  ;; actually doing anything.  See LibreOffice bug
  ;; https://bugs.freedesktop.org/show_bug.cgi?id=37531.  A workaround
  ;; is to start soffice with a separate UserInstallation directory.
  (let ((tmp-user-install-dir (make-temp-file "libreoffice-docview" t)))
    (doc-view-start-process "odf->pdf" doc-view-odf->pdf-converter-program
                             (concat "-env:UserInstallation=file://"
                             "--headless" "--convert-to" "pdf"
                             "--outdir" (doc-view-current-cache-dir) odf)
                            (lambda ()
                              (delete-directory tmp-user-install-dir t)
                              (funcall callback)))))
--8<---------------cut here---------------end--------------->8---

Andreas Leha <address@hidden> writes:

> I had problems to use LibreOffice to convert a *already open* document.  So,
> if you are viewing the doc in LibreOffice while you try your export, you
> might run into problems.
> This is a reported bug in LibreOffice.  The suggested work-around is to
> use a temporary profile as in:
> libreoffice "-env:UserInstallation=file:///tmp/LibO_Conversion"
> --headless --invisible --convert-to txt:text "$FILENAME" >/dev/null
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> You might try to add that to the conversion command and see whether it
> helps.

--- End Message ---
--- Begin Message --- Subject: Re: bug#14440: Extending ODT export Date: Tue, 01 Jan 2002 06:04:59 +0530 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
I should be stupid in opening bug reports in response to people who
don't followup on their original reports.

As OP, I am closing it.

--- End Message ---

reply via email to

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