* 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
* Re: Open PDF under Windows on specific page using PDF-XChange Viewer
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
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Holst @ 2013-03-19 10:32 UTC (permalink / raw)
To: AW; +Cc: OrgMode ML
Hello Alexander,
· AW <alexander.willand@t-online.de> wrote:
> [... snip ...]
> #+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
for me the following works under Win7:
#+begin_src emacs-lisp
(add-to-list 'org-file-apps
'("\\.pdf::\\([0-9]+\\)\\'" .
"\"C:/Program Files (x86)/Adobe/Acrobat 10.0/Acrobat/Acrobat.exe\"
/A page=%1 %s")
#+end_src
(Without line break in the string)
I think Win7 chokes on single quotes.
HTH
--
Bis neulich ...
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Open PDF under Windows on specific page using PDF-XChange Viewer
2013-03-19 10:32 ` Thomas Holst
@ 2013-03-19 11:04 ` AW
2013-03-20 7:42 ` Otto Pichlhöfer
0 siblings, 1 reply; 4+ messages in thread
From: AW @ 2013-03-19 11:04 UTC (permalink / raw)
To: Thomas Holst; +Cc: OrgMode ML
Am Dienstag, 19. März 2013, 11:32:26 schrieb Thomas Holst:
> Hello Alexander,
>
> · AW <alexander.willand@t-online.de> wrote:
> > [... snip ...]
> > #+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
>
> for me the following works under Win7:
>
> #+begin_src emacs-lisp
> (add-to-list 'org-file-apps
> '("\\.pdf::\\([0-9]+\\)\\'" .
> "\"C:/Program Files (x86)/Adobe/Acrobat 10.0/Acrobat/Acrobat.exe\"
> /A page=%1 %s")
> #+end_src
> (Without line break in the string)
>
> I think Win7 chokes on single quotes.
>
> HTH
Yes, it did help indeed, thank you very much!
For the record:
#+begin_src emacs-lisp
(add-to-list 'org-file-apps
'("\\.pdf::\\([0-9]+\\)\\'" . "\"C:/Program Files/Tracker Software/PDF
Viewer/PDFXCview.exe\" /A page=%1 %s"))
#+end_src
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Open PDF under Windows on specific page using PDF-XChange Viewer
2013-03-19 11:04 ` AW
@ 2013-03-20 7:42 ` Otto Pichlhöfer
0 siblings, 0 replies; 4+ messages in thread
From: Otto Pichlhöfer @ 2013-03-20 7:42 UTC (permalink / raw)
To: emacs-orgmode
AW <alexander.willand <at> t-online.de> writes:
> For the record:
>
> #+begin_src emacs-lisp
> (add-to-list 'org-file-apps
> '("\\.pdf::\\([0-9]+\\)\\'" . "\"C:/Program Files/Tracker Software/PDF
> Viewer/PDFXCview.exe\" /A page=%1 %s"))
> #+end_src
>
>
(add-to-list 'org-file-apps '("\\.\\(doc\\|docx\\|pdf\\|dct\\)$" . system))
works for me, if the viewer is set in the system options.
--
Otto
^ 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).