GNU bug report logs - #33684
DocView bombs out upon password protected PDFs

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 9 Dec 2018 10:54:02 UTC

Severity: wishlist

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Federico Tedin <federicotedin <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 33684 <at> debbugs.gnu.org, jidanni <at> jidanni.org, Tassilo Horn <tsdh <at> gnu.org>
Subject: Re: bug#33684: DocView bombs out upon password protected PDFs
Date: Sat, 02 Feb 2019 17:58:00 -0300
[Message part 1 (text/plain, inline)]
Here's the new version of the patch, which enables using MuPDF to open
password-protected PDF files.

One problem I encountered while writing it is that function
`doc-view-pdf->png-converter-mupdf' uses a small hack to add "draw" to
the arguments list passed to `doc-view-start-process', only when
`doc-view-pdfdraw-program' has the value "mutool". This is because the
"mudraw" command has been replaced at some point by the "mutool"
command, which requires passing "draw" as a subcommand to do the same
work. I ended up using the same hack in the new function I created, with
a reference to the original one, but I'm not sure this was the best
possible approach. Is there a cleaner way to solve this?

- Federico

[pdf.patch (text/x-diff, attachment)]

This bug report was last modified 6 years and 103 days ago.

Previous Next


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