[pdftex] \pdfstartlink attributes
Heiko Oberdiek
oberdiek at uni-freiburg.de
Mon Sep 1 17:02:11 CEST 2008
On Mon, Sep 01, 2008 at 01:04:54PM +0200, silvio mercadante wrote:
> On Aug 13, 2008, Heiko wrote:
> > \pdfstartlink (and many other primitives) are low level
> > commands intended for experts. Use some of the
> > higher user level macros (hyperref/latex, ConTeXt, ...) if
> > you don't want to become an expert.
>
>
> Yes, I see. I'd like to become as few of an expert as it suffices to
> personalize the look of hyerlinks in the typesets...
> ;-)
>
> For example, with the attributes
> attr{/C [1 .5 0]/BS<</Type/Border/S/S/W 1>>}%
> user{/Subtype/Link/A<</Type/Action/S/URI/URI(#1)>>}%
> I get an orange border 1 point thick around the hyperlink in the on-
> screen view (but nothing in the print...).
\documentclass{article}
\usepackage{xcolor}
\definecolor{orange}{rgb}{1,.5,0}
\usepackage{hyperref}
\hypersetup{urlbordercolor=orange}
\begin{document}
\tableofcontents
\section{Hello World}
\url{http://www.tug.org/}
\end{document}
> If I wanted the border filled with an orange background?
No easy way.
> If I wanted all that printed and not only displayed?
* hyperref: a side effect of option `pdfa' (frame).
* low level: /F 4
* make the frame/background part of the document (\fbox/\(f)colorbox).
Yours sincerely
Heiko <oberdiek at uni-freiburg.de>
--
More information about the pdftex
mailing list