Marvin Doyley <marvin...@gmail.com> 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