From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Clementson Newsgroups: gmane.emacs.help Subject: Re: doc-view.el now allows searching Date: Fri, 31 Aug 2007 13:56:42 -0700 Message-ID: References: <87wsvnfoyp.fsf@baldur.tsdh.de> <878x7ylhdk.fsf@baldur.tsdh.de> <87fy26gn55.fsf@baldur.tsdh.de> <874pil8f2m.fsf@baldur.tsdh.de> <87odgsjef5.fsf@baldur.tsdh.de> <87absbg53e.fsf@baldur.tsdh.de> <878x7ujfov.fsf@baldur.tsdh.de> <87odgptrwx.fsf@baldur.tsdh.de> <877indtf1o.fsf_-_@baldur.tsdh.de> <87zm075022.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188593842 22864 80.91.229.12 (31 Aug 2007 20:57:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 20:57:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 22:57:21 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IRDYH-0004Vj-Vu for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 22:57:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRDYH-0006jO-Do for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 16:57:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRDY1-0006im-T3 for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:56:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRDY0-0006gh-8n for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:56:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRDY0-0006gX-3Z for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:56:56 -0400 Original-Received: from main.gmane.org ([80.91.229.2] 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 1IRDXz-0004Nu-GF for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:56:55 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IRDXu-0002Ad-Cb for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 22:56:50 +0200 Original-Received: from s010600095bf8da6e.vn.shawcable.net ([24.87.84.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Aug 2007 22:56:50 +0200 Original-Received: from billclem by s010600095bf8da6e.vn.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Aug 2007 22:56:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: s010600095bf8da6e.vn.shawcable.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:VNPSaTJ7a4xZ1H75gBOFQ99xywM= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47043 Archived-At: Peter Dyballa writes: > Am 31.08.2007 um 18:38 schrieb Bill Clementson: > >> >> First, I thought it might have something to do with the size of the >> pdf file or blank pages not being counted; however, searches of the >> sicp.pdf book all seemed to produce correct results, so I'm not sure >> why the search functionality doesn't work properly in some instances. > > The reason is probably that pdftotext is used with the -raw option, > which deletes all empty lines leading white space. There is another > option: -layout. > > I think doc-view should check the number of pages first (pdfinfo > | grep -i pages | awk '{print $NF}'). If the number is greater > 1 than -layout should be more appropriate ... > > > BTW, -layout is bit faster! I tried deleting the doc.txt file, changing the pdftotext parameter to "-layout" and re-doing the search. Unfortunately, the results were the save with the PCL pdf file. - Bill