From: Tassilo Horn <tsdh@gnu.org>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: Bastien <bzg@gnu.org>, Jambunathan K <kjambunathan@gmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>,
emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r111707: * doc-view.el: Use (and prefer) soffice as default ODF->PDF
Date: Tue, 12 Feb 2013 10:59:42 +0100 [thread overview]
Message-ID: <87pq05zwc1.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <87haljxy26.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Mon, 11 Feb 2013 13:40:49 +0900")
"Stephen J. Turnbull" <stephen@xemacs.org> writes:
> > >> I'm not sure I get the logic here: you need to have soffice
> > >> installed if you want to use unoconv, but being able to use
> > >> unoconv instead of soffice is good.
>
> That's true for the *user* at the command line, but for Emacs it
> depends on how unoconv is being used. If the UI provides a Swiss Army
> knife able to convert any given format to any other by delegating the
> format grokking to unoconv, yes, it's sort of good, assuming that
> Emacs will never pass incorrect arguments to unoconv.[1] In that case
> unoconv (and any other "universal converters") should be tried only
> after specific converters that do a better job are tried.[2]
>
> If in fact what happens is that Emacs parses the formats and only
> handles formats that it recognizes, unoconv is useless to Emacs. (I
> suspect this is rarely what most users want[3], but I prefer it. If
> Emacs can't do a good job automatically, it should leave it up to me!)
Ok, to clear up the situation a bit: unoconv is probably more powerful
than soffice. For example, it is possible to run it as a server that
accepts conversion requests from multiple clients. doc-view doesn't
need that.
doc-view just uses either unoconv or soffice to convert OpenDocument or
Microsoft Office documents to PDF. Both tools can do that just fine,
and they use the same LibreOffice/OpenOffice internal APIs for the job.
I've converted some example documents with both of them, and the output
is almost identical: identically displayed, identical with respect to
file size of the generated PDF, but diff says they differ nonetheless.
However, soffice is appoximately 2.5 to 7 times faster. It seems that
unoconv has some significant startup overhead compared to soffice. I
hadn't expected that, but in the end it justifies that soffice is picked
up by default when both soffice and unoconv are installed on a system.
Bye,
Tassilo
next prev parent reply other threads:[~2013-02-12 9:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1U47Uj-0004Wk-3p@vcs.savannah.gnu.org>
2013-02-09 14:26 ` [Emacs-diffs] /srv/bzr/emacs/trunk r111707: * doc-view.el: Use (and prefer) soffice as default ODF->PDF Stefan Monnier
2013-02-09 20:03 ` Glenn Morris
2013-02-10 0:26 ` Glenn Morris
2013-02-10 8:57 ` Bastien
2013-02-10 20:51 ` Glenn Morris
2013-02-11 3:36 ` Jambunathan K
2013-02-11 4:40 ` Stephen J. Turnbull
2013-02-12 9:59 ` Tassilo Horn [this message]
2013-02-12 11:58 ` Tassilo Horn
2013-02-10 11:07 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pq05zwc1.fsf@thinkpad.tsdh.de \
--to=tsdh@gnu.org \
--cc=bzg@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=kjambunathan@gmail.com \
--cc=monnier@iro.umontreal.ca \
--cc=stephen@xemacs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.