From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: doc-view-mode
Date: Wed, 12 Aug 2009 23:19:34 +0200 [thread overview]
Message-ID: <877hx8logp.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 877hx84ypn.fsf_-_@telefonica.net
Óscar Fuentes <ofv@wanadoo.es> writes:
Hi Óscar,
>> If doc-view-mode could provide native support for those file types,
>> it'd be much more realistic to replace standard viewers provided by
>> the os. Unfortunately the last time I checked which is quite a while
>> ago, it converted those files into images and use Emacs to view them.
This conversion by ghostscript is needed, cause emacs supports PNG
images, but doesn't support some native PDF/PS/DVI rendering.
Joachim Verona currently works on integrating the imagemagick library
with emacs. When that is done, at least zooming in doc-view won't
trigger a new conversion run.
> Converting the pdf|ps|dvi file to images is exactly what your
> favourite viewer does. The problem with doc-view-mode is that it
> converts *all* pages on the document to image *files* which are left
> on some place of the hard disk.
I think that's the only practical solution, else you would have to wait
about a scond when switching to the next page. The doc-view version in
emacs 23 does a pretty good job in hiding the conversion process, for
example by converting from the current page on instead from the first.
Why are many files a problem for you? With that approach, opening a
document for the second time works instantly. And by default those
images are stored somewhere in /tmp:
,----[ C-h v doc-view-cache-directory RET ]
| doc-view-cache-directory is a variable defined in `doc-view.el'.
| Its value is "/tmp/docview1000"
|
| Documentation:
| The base directory, where the PNG images will be saved.
|
| You can customize this variable.
`----
On my system, /tmp is cleaned on startup. And you can always invoke
,----[ C-h f doc-view-clear-cache RET ]
| doc-view-clear-cache is an interactive compiled Lisp function in
| `doc-view.el'.
|
| (doc-view-clear-cache)
|
| Delete the whole cache (`doc-view-cache-directory').
`----
to get rid of the images.
Bye,
Tassilo
next prev parent reply other threads:[~2009-08-12 21:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 18:25 [ANN] org-docview.el - Link to PDF files from org-mode Jan Böcker
2009-08-12 18:45 ` Leo
2009-08-12 19:30 ` doc-view-mode (was: Re: [ANN] org-docview.el - Link to PDF files from org-mode) Óscar Fuentes
2009-08-12 19:45 ` Leo
2009-08-12 20:28 ` doc-view-mode Óscar Fuentes
2009-08-12 21:19 ` Tassilo Horn [this message]
2009-08-12 22:26 ` doc-view-mode Óscar Fuentes
2009-08-13 11:11 ` doc-view-mode Tassilo Horn
2009-08-12 21:33 ` Re: [ANN] org-docview.el - Link to PDF files from org-mode Carsten Dominik
2009-08-12 23:50 ` Leo
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hx8logp.fsf@thinkpad.tsdh.de \
--to=tassilo@member.fsf.org \
--cc=emacs-orgmode@gnu.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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).