From: Hans Hagen <pragma@wxs.nl>
Cc: Stefan Wachter <stefan.wachter@gmx.de>
Subject: Re: How to produce PDF links with custom action?
Date: Thu, 05 Feb 2004 18:39:38 +0100 [thread overview]
Message-ID: <6.0.1.1.2.20040205183708.03235de8@server-1> (raw)
In-Reply-To: <loom.20040204T170505-134@post.gmane.org>
At 17:13 04/02/2004, you wrote:
>Hi all!
>
>Does ConTeXt allow to create links with custom actions? I have a working
>LaTeX /
>PDF-TeX solution which I am not able to port to ConTeXt. The following PDF-TeX
>code contained in a LaTeX file produces the desired PDF-Code.
>
>\\pdfstartlink attr{/Border [ 0 0 0 ]} user{/Subtype/Link/A << /S /AVDP_Action
>/AVDP_Param (../../nach-dateipfad.pdf 1)>>}
>here is a link
>\\pdfendlink
>
>Yet, if I include the same lines of code in a ConTeXt file then no link is
>generated.
In context we do things a bit different:
You can put this in some local file, the style or in a preamble:
\unprotected \setglobalsystemreference\rt!exec{AVDP}{AVDP}
\def\PDFexecuteAVDP{/AVDP_Action /AVDP_Param (\argumentA)}
After that, you can do things like:
\setupinteraction[state=start]
\starttext
\goto{test}[AVDP{../../nach-dateipfad.pdf 1}]
\stoptext
So, a bit more abstract interface with the advantage of more functionality,
as in:
\goto{test}[nextpage,AVDP{../../nach-dateipfad.pdf 1}]
Hans
next prev parent reply other threads:[~2004-02-05 17:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-04 16:13 Stefan Wachter
2004-02-05 17:39 ` Hans Hagen [this message]
2004-02-06 7:44 ` Stefan Wachter
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6.0.1.1.2.20040205183708.03235de8@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
--cc=stefan.wachter@gmx.de \
/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.
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 NNTP newsgroup(s).