[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] View DjVu documents through doc-view-mode
From: |
Jambunathan K |
Subject: |
Re: [PATCH] View DjVu documents through doc-view-mode |
Date: |
Mon, 03 Sep 2012 00:36:35 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
Elias Pipping <address@hidden> writes:
> I sent a patch to this list last year that made it possible to use
> mupdf's "mudraw" instead of ghostscript's "gs" to convert pdf documents
> into png files within doc-view-mode.
[On a related note, may be slightly OT]
It was around the same time that I was looking at doc-view mode and
looking for an easy way to convert ODT files to PDF. Here is a pointer
to my post
http://lists.gnu.org/archive/html/emacs-devel/2011-06/msg00956.html
Crux of my message was to put doc->pdf converter configurable by user.
When I made that post, I was having working on my own StarBasic macro -
called `BasicODConverter' - installed within LibreOffice to do the
conversion. Since then I have discovered that `soffice' itself could be
used for pdf conversion. Note that `soffice' has an advantage over
`unoconv' in that it is LibreOffice itself (so no extra installation)
and the converter could be run headless (no need to set up a converter
server in the background)
,----[ C-h v org-export-odt-convert-processes RET ]
| org-export-odt-convert-processes is a variable defined in `org-odt.el'.
| Its value is (("LibreOffice" "soffice --headless --convert-to %f%x --outdir
%d %i")
| ("unoconv" "unoconv -f %f -o %d %i"))
|
|
| Documentation:
| Specify a list of document converters and their usage.
| The converters in this list are offered as choices while
| customizing `org-export-odt-convert-process'.
|
| This variable is a list where each element is of the
| form (CONVERTER-NAME CONVERTER-CMD). CONVERTER-NAME is the name
| of the converter. CONVERTER-CMD is the shell command for the
| converter and can contain format specifiers. These format
| specifiers are interpreted as below:
|
| %i input file name in full
| %I input file name as a URL
| %f format of the output file
| %o output file name in full
| %O output file name as a URL
| %d output dir in full
| %D output dir as a URL.
| %x extra options as set in `org-export-odt-convert-capabilities'.
|
| You can customize this variable.
|
| This variable was introduced, or its default value was changed, in
| version 24.1 of Emacs.
`----
--