[pstricks] hyperref trouble
Patrice Mégret
Patrice.Megret at fpms.ac.be
Wed Apr 22 22:03:53 CEST 2009
Dear Alexander,
Thanks a lot for this code: it perfectly fits my need.
By the way, I would like to extend your code to be able to choose the pdfpagelayout=SinglePage or TwoColumnLeft and pdfpagemode=FullScreen because these two commands do not work with \hypersetup{}.
Have you any literature on the subject? Have any explanation why some commands I inside hyperref do not work with Acrobat 9.0 ?
Best regards,
Patrice Mégret
-----Message d'origine-----
De : pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] De la part de Alexander Grahn
Envoyé : mercredi 22 avril 2009 16:55
À : Graphics with PSTricks
Objet : Re: [pstricks] hyperref trouble
On Wed, Apr 22, 2009 at 02:19:56PM +0200, Patrice Mégret wrote:
>Dear all,
>
>I would like open pdf files from slides and for that I use hyperref and powerdot.
>
>By clicking on text, I open the second pdf file in a new window (pdfnewwindow=true) but not on page 2 (pdfstartpage=2).
Try the following, works with LaTeX/dvips/ps2pdf as well as with pdfLaTeX.
Regards,
Alexander
\documentclass{article}
\usepackage{hyperref}
\hypersetup{pdfnewwindow=true}
\usepackage{ifpdf}
\makeatletter
\newcommand\remoteGoTo[3]{%
\leavevmode%
\ifpdf
\pdfstartlink%
attr{%
/Border [\@pdfborder]
/H \@pdfhighlight\space
/C [\@filebordercolor]%
}%
user{
/Subtype /Link
/A <<
/S/GoToR
/F (#1)
/D [\number\numexpr#2-1\relax \@pdfstartview]
\Hy at SetNewWindow
>>
}%
#3%
\pdfendlink%
\else%
\pdfmark[#3]{
pdfmark=/ANN,%
Subtype=/Link,%
AcroHighlight=\@pdfhighlight,%
Border=\@pdfborder,%
Raw={%
/C [\@filebordercolor]%
/A <<
/S/GoToR
/F (#1)
/D [\number\numexpr#2-1\relax \@pdfstartview]
\Hy at SetNewWindow
>>
}%
}%
\fi%
}%
\makeatother
\begin{document}
This \remoteGoTo{Test4pages.pdf}{2}{link} takes you to page 2 of Test4pages.pdf.
\end{document}
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list