From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Problem with docview Date: Fri, 10 May 2013 14:58:16 -0400 Message-ID: <87li7moe5z.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UasWX-00076D-UK for emacs-orgmode@gnu.org; Fri, 10 May 2013 14:58:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UasWV-0002dE-UX for emacs-orgmode@gnu.org; Fri, 10 May 2013 14:58:33 -0400 Received: from plane.gmane.org ([80.91.229.3]:45120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UasWV-0002cr-N3 for emacs-orgmode@gnu.org; Fri, 10 May 2013 14:58:31 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UasWT-0001dC-19 for emacs-orgmode@gnu.org; Fri, 10 May 2013 20:58:29 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 May 2013 20:58:29 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 May 2013 20:58:29 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Marvin Doyley writes: > I am trying to link to a specific page in a pdf file using > org-docview.  For example, I have a org file with the following header > > ** [[docview:~/Desktop/2013_test.pdf::3][Digital modulation notes]] > > However, when I double click on the link I get the following error > > Invalid image file name `nil' > > Does anybody know to fix this problem ? > Seems to work here[fn:1]. One thing that seems slightly broken is that if the file is huge and docview takes a while to convert it, then the goto-page part does not seem to be effective: ,---- | (defun org-docview-open (link) | (when (string-match "\\(.*\\)::\\([0-9]+\\)$" link) | (let* ((path (match-string 1 link)) | (page (string-to-number (match-string 2 link)))) | (org-open-file path 1) ;; let org-mode open the file (in-emacs = 1) | ;; to ensure org-link-frame-setup is respected | (doc-view-goto-page page) | ))) `---- It stays on p.1 in that case. It works OK for small files. Can you turn on debug-on-error and post the backtrace? Footnotes: [fn:1] Org-mode version 8.0.2 (release_8.0.2-72-gccfe83 @ /home/nick/elisp/org-mode/lisp/) -- Nick