emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: AW <alexander.willand@t-online.de>
To: OrgMode ML <emacs-orgmode@gnu.org>
Subject: Open PDF under Windows on specific page using PDF-XChange Viewer
Date: Tue, 19 Mar 2013 11:11:22 +0100	[thread overview]
Message-ID: <2047181.TCzP6MzcPz@linux-ik7b.site> (raw)

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	other threads:[~2013-03-19 10:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 10:11 AW [this message]
2013-03-19 10:32 ` Open PDF under Windows on specific page using PDF-XChange Viewer Thomas Holst
2013-03-19 11:04   ` AW
2013-03-20  7:42     ` Otto Pichlhöfer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2047181.TCzP6MzcPz@linux-ik7b.site \
    --to=alexander.willand@t-online.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).