From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: doc-view-mode Date: Wed, 12 Aug 2009 23:19:34 +0200 Message-ID: <877hx8logp.fsf@thinkpad.tsdh.de> References: <877hx84ypn.fsf_-_@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbLEY-0008Ey-Vr for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 17:19:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbLEU-0008C5-BX for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 17:19:46 -0400 Received: from [199.232.76.173] (port=35266 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbLEU-0008By-0j for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 17:19:42 -0400 Received: from main.gmane.org ([80.91.229.2]:44427 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MbLET-0003pG-E4 for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 17:19:41 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MbLEO-00009b-DW for emacs-orgmode@gnu.org; Wed, 12 Aug 2009 21:19:36 +0000 Received: from p54af254d.dip0.t-ipconnect.de ([84.175.37.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Aug 2009 21:19:36 +0000 Received: from tassilo by p54af254d.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Aug 2009 21:19:36 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Óscar Fuentes 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