From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#14580: 24.3; docview-mode doesn't work for multi-page pdf in 24.3 Date: Tue, 11 Jun 2013 08:33:35 +0200 Message-ID: <87y5ahkvgg.fsf@thinkpad.tsdh.de> References: <8738srirsa.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370932437 21993 80.91.229.3 (11 Jun 2013 06:33:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Jun 2013 06:33:57 +0000 (UTC) Cc: 14580@debbugs.gnu.org To: Neal Becker Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 11 08:33:57 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UmI9U-0002Xj-RP for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 08:33:56 +0200 Original-Received: from localhost ([::1]:32817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmI9U-00038E-8n for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jun 2013 02:33:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmI9P-000388-I2 for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 02:33:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmI9O-0000y5-F8 for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 02:33:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmI9O-0000xz-Br for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 02:33:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UmI9a-0000ee-T5 for bug-gnu-emacs@gnu.org; Tue, 11 Jun 2013 02:34:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jun 2013 06:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14580 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14580-submit@debbugs.gnu.org id=B14580.13709324382493 (code B ref 14580); Tue, 11 Jun 2013 06:34:02 +0000 Original-Received: (at 14580) by debbugs.gnu.org; 11 Jun 2013 06:33:58 +0000 Original-Received: from localhost ([127.0.0.1]:55904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UmI9V-0000e9-RZ for submit@debbugs.gnu.org; Tue, 11 Jun 2013 02:33:58 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:52344) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UmI9O-0000dl-LG for 14580@debbugs.gnu.org; Tue, 11 Jun 2013 02:33:51 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 09B371A913E; Tue, 11 Jun 2013 08:33:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3VDe4Z9HmbRL; Tue, 11 Jun 2013 08:33:35 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 239FC1A9131; Tue, 11 Jun 2013 08:33:34 +0200 (CEST) In-Reply-To: (Neal Becker's message of "Mon, 10 Jun 2013 13:58:27 -0400") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74964 Archived-At: Neal Becker writes: Hi Neal, > Also, these are not some special files from XeTeX. I'm using > matplotlib, I've tried opening your sample PDF about a dozen times using emacs 24.3 as well as the current emacs trunk, each version both with -Q and with my customizations. In all cases, the PDF had 3 pages... > and it seems to happen something like 50% of the time. One thing that might explain parts of your problem: when you open the file initially and then something fails and only the first page is converted, then any subsequent opening of the file will only access the single cached image without checking if the PDF has actually more pages than there are images already. To force a reconversion, you can hit `g' in the doc-view buffer. But still, if ghostscript or mupdf error when converting a document, you should at least get some message like "ghostscript terminated with exit code XX"... Not sure, but maybe it's a problem with your ghostscript or mupdf version. What's the value of `doc-view-pdf->png-converter-function'? If it is `doc-view-pdf->png-converter-mupdf', then try $ mudraw -o doc%d.png doc.pdf on the command line. If it is `doc-view-pdf->png-converter-ghostscript', then try $ gs -dSAFER -dNOPAUSE -sDEVICE=png16m -dTextAlphaBits=4 \ -dBATCH -dGraphicsAlphaBits=4 -dQUIET -sOutputFile=doc%d.png \ doc.pdf Does that produce one image per page in the PDF, i.e., 3 images for your sample file? Bye, Tassilo