emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Open PDF under Windows on specific page using PDF-XChange Viewer


From: AW
Subject: [O] Open PDF under Windows on specific page using PDF-XChange Viewer
Date: Tue, 19 Mar 2013 11:11:22 +0100
User-agent: KMail/4.10 (Linux/3.7.10-1.1-desktop; KDE/4.10.0; x86_64; ; )

Dear all,

under Windows 7, Emacs 24.2 and orgmode 7.9.4 I would like to have a
hyperlink to an external pdf. The pdf should be opened by a
software called PDVXchange viewer /at a certain page/.

The command on the command line in windows is:

PDFXCview /A page=10 filename.pdf

This works on the command line: The pdf is opened on page 10. But how do I 
implement that in orgmode? Which lines to add to my .emacs file?

I found an example for evince here:

http://emacswiki.org/emacs/OrgMode

#+begin_source lisp
  (delete '("\\.pdf\\'" . default) org-file-apps)
    (add-to-list 'org-file-apps '("\\.pdf::\\([0-9]+\\)\\'" . "evince \"%s\" -p 
%1"))
#+end_source

I tried in vain to adapt it:

#+begin_source lisp
(delete '("\\.pdf\\'" . default) org-file-apps)
    (add-to-list 'org-file-apps '("\\.pdf::\\([0-9]+\\)\\'"
    . "PDFXCview /A 'page'=%1 \"%s\" "))
#+end_source

The hyperlink in org looks like this:

[[file:filename.pdf::10][link to my file]]

Could anybody provide a working solution? Emacs simply not reacts
with my adaption.

Thank you!

Alexander




reply via email to

[Prev in Thread] Current Thread [Next in Thread]