unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14440: Extending ODT export
  2013-05-22  8:36               ` Extending ODT export Jambunathan K
@ 2002-01-01  0:34                 ` Jambunathan K
  0 siblings, 0 replies; 2+ messages in thread
From: Jambunathan K @ 2002-01-01  0:34 UTC (permalink / raw)
  To: Andreas Leha; +Cc: 14440-done, emacs-orgmode


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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Extending ODT export
       [not found]             ` <878v3q7xpi.fsf@med.uni-goettingen.de>
@ 2013-05-22  8:36               ` Jambunathan K
  2002-01-01  0:34                 ` bug#14440: " Jambunathan K
  0 siblings, 1 reply; 2+ messages in thread
From: Jambunathan K @ 2013-05-22  8:36 UTC (permalink / raw)
  To: Andreas Leha; +Cc: bug-gnu-emacs, emacs-orgmode


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
			    (list
			     (concat "-env:UserInstallation=file://"
				     tmp-user-install-dir)
			     "--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 <andreas.leha@med.uni-goettingen.de> 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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-22  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <xgzfvxzm36m.fsf@hafnfirdingur.hafro.is>
     [not found] ` <xgzli7row3g.fsf@hafnfirdingur.hafro.is>
     [not found]   ` <m2a9o7dlcs.fsf@uio.no>
     [not found]     ` <CB3AF005-3E40-4AEC-8B60-6AED5C3EE8C2@gmail.com>
     [not found]       ` <xgzk3naaoeb.fsf@hafnfirdingur.hafro.is>
     [not found]         ` <162AA118-3C0D-4E3D-BA96-90CBB47003A0@ieee.org>
     [not found]           ` <969F330B-BF74-4C3F-A166-13BE3DFF2EF6@ieee.org>
     [not found]             ` <878v3q7xpi.fsf@med.uni-goettingen.de>
2013-05-22  8:36               ` Extending ODT export Jambunathan K
2002-01-01  0:34                 ` bug#14440: " Jambunathan K

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).