emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Open PDF under Windows on specific page using PDF-XChange Viewer
@ 2013-03-19 10:11 AW
  2013-03-19 10:32 ` Thomas Holst
  0 siblings, 1 reply; 4+ messages in thread
From: AW @ 2013-03-19 10:11 UTC (permalink / raw)
  To: OrgMode ML

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-20  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 10:11 Open PDF under Windows on specific page using PDF-XChange Viewer AW
2013-03-19 10:32 ` Thomas Holst
2013-03-19 11:04   ` AW
2013-03-20  7:42     ` Otto Pichlhöfer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).