GNU bug report logs - #13164
[PATCH] View DjVu documents through doc-view-mode

Previous Next

Package: emacs;

Reported by: Elias Pipping <pipping <at> lavabit.com>

Date: Wed, 12 Dec 2012 22:54:02 UTC

Severity: wishlist

Tags: patch

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #1 received at quiet <at> debbugs.gnu.org (full text, mbox):

From: Elias Pipping <pipping <at> lavabit.com>
To: quiet <at> debbugs.gnu.org
Subject: [PATCH] View DjVu documents through doc-view-mode
Date: Sun, 02 Sep 2012 13:27:14 +0200
[Message part 1 (text/plain, inline)]
Package: emacs
Severity: wishlist

[resent from
http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00029.html ]

Hello,

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.

I've since been testing that patch and never looked back since the
switch sped up the pdf->png conversion by a factor of two and brought
anti-aliasing with it. 

In a similar fashion, I've now added support for DjVu->Tiff conversion
to doc-view-mode through djvulibre. While djvulibre's "ddjvu" has always
allowed for such conversion, I only yesterday requested[1] the necessary
feature of creating one tiff file per page, which was immediately
implemented (Mr. Bottou, if you're reading this, thanks again!).

Consequently, to have the two patches I'm attaching work as expected,
one needs the latest version of djvulibre from

  git://djvu.git.sourceforge.net/gitroot/djvu/djvulibre


Best regards,

Elias Pipping

[1] http://sourceforge.net/tracker/?func=detail&atid=406586&aid=3564062&group_id=32953

PS: I've configured emacs with --without-imagemagick. I did not test
what happens if imagemagick is used.

PPS: If you need PDF and DjVu files to toy around with, I suggest the
ones at http://projecteuclid.org/euclid.pjm/1102986512 since they also
make a nice read.

PPPS: The first diff is against vanilla emacs 24.2.

[0001-Make-doc-view-pdf-png-1-customizable.patch (text/x-patch, attachment)]
[0002-Add-DjVu-support.patch (text/x-patch, attachment)]

This bug report was last modified 12 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.