diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-23 22:38:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-23 22:38:37 +0000 |
commit | c74d9648abb6877ccf4c69fdd39bb8d3763574bf (patch) | |
tree | ddd4dd23684c44aa6a843a8e94264bc974b63e46 /Master/texmf-dist/tex/latex/hyperref/hpdftex.def | |
parent | f6dd9957662159e2371ea2a289201795b36f6e87 (diff) |
hyperref (23aug12)
git-svn-id: svn://tug.org/texlive/trunk@27508 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hpdftex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hpdftex.def | 49 |
1 files changed, 45 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def index 9470923ad4d..69139479d48 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def @@ -29,7 +29,7 @@ %% given in the file `manifest.txt'. %% \ProvidesFile{hpdftex.def} - [2012/08/18 v6.83b % + [2012/08/21 v6.83c % Hyperref driver for pdfTeX] \Hy@VersionCheck{hpdftex.def} \pdf@ifdraftmode{% @@ -969,6 +969,32 @@ }{SubmitP}% } \let\@endForm\ltx@empty +\let\HyAnn@AbsPageLabel\ltx@empty +\let\Fld@pageobjref\ltx@empty +\ltx@IfUndefined{pdfpageref}{% +}{% + \ltx@ifpackageloaded{zref-abspage}{% + \newcount\HyAnn@Count + \HyAnn@Count=\ltx@zero + \def\HyAnn@AbsPageLabel{% + \global\advance\HyAnn@Count by\ltx@one + \zref@labelbyprops{HyAnn@\the\HyAnn@Count}{abspage}% + \zref@refused{HyAnn@\the\HyAnn@Count}% + }% + \def\Fld@pageobjref{% + \zref@ifrefundefined{HyAnn@\the\HyAnn@Count}{% + }{% + \zref@ifrefcontainsprop{HyAnn@\the\HyAnn@Count}{abspage}{% + /P \pdfpageref + \zref@extractdefault{HyAnn@\the\HyAnn@Count}{abspage}{1} % + \space 0 R% + }{% + }% + }% + }% + }{% + }% +} \def\@TextField[#1]#2{% parameters, label \def\Fld@name{#2}% \let\Fld@default\ltx@empty @@ -991,6 +1017,7 @@ \ifx\Fld@value\@empty\def\Fld@value{\Fld@default}\fi \LayoutTextField{#2}{% \leavevmode + \HyAnn@AbsPageLabel \Hy@escapeform\PDFForm@Text \pdfstartlink user {\PDFForm@Text}\relax \MakeTextField{\Fld@width}{\Fld@height}\pdfendlink @@ -1076,6 +1103,7 @@ \Hy@StepCount\Fld@listcount \@currDisplay\space \leavevmode + \HyAnn@AbsPageLabel \Hy@escapeform\PDFForm@Radio \pdfstartlink user {% \PDFForm@Radio @@ -1097,6 +1125,7 @@ \def\@@Listbox#1{% \HyField@PDFChoices{#1}% \leavevmode + \HyAnn@AbsPageLabel \Hy@escapeform\PDFForm@List \pdfstartlink user {\PDFForm@List}\relax \MakeChoiceField{\Fld@width}{\Fld@height}% @@ -1123,6 +1152,7 @@ \ifFld@hidden\def\Fld@width{1sp}\fi \LayoutPushButtonField{% \leavevmode + \HyAnn@AbsPageLabel \Hy@escapeform\PDFForm@Push \pdfstartlink user {\PDFForm@Push}\relax \MakeButtonField{#2}% @@ -1143,6 +1173,7 @@ \HyField@FlagsSubmit \ifFld@hidden\def\Fld@width{1sp}\fi \leavevmode + \HyAnn@AbsPageLabel \Hy@escapeform\PDFForm@Submit \pdfstartlink user {% \PDFForm@Submit @@ -1170,6 +1201,7 @@ \else \HyField@FlagsPushButton \ifFld@hidden\def\Fld@width{1sp}\fi + \HyAnn@AbsPageLabel \Hy@escapeform\PDFForm@Reset \pdfstartlink user {\PDFForm@Reset}\relax \MakeButtonField{#2}% @@ -1192,6 +1224,7 @@ \ifFld@hidden\def\Fld@width{1sp}\fi \LayoutCheckField{#2}{% \leavevmode + \HyAnn@AbsPageLabel \Hy@escapeform\PDFForm@Check \pdfstartlink user {\PDFForm@Check}\relax \MakeCheckField{\Fld@width}{\Fld@height}% @@ -1256,8 +1289,9 @@ \xdef\OBJ@Helv{\the\pdflastobj}% \global\let\Hy@FormObjects\relax } +\providecommand*{\Fld@pageobjref}{} \begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname pdfescapestring\endcsname\relax +\expandafter\ifx\csname pdf@escapestring\endcsname\relax \let\Hy@escapestring\@firstofone \def\Hy@escapeform#1{% \ifHy@pdfescapeform @@ -1386,6 +1420,7 @@ \def\PDFForm@Check{% /Subtype/Widget% \Fld@annotflags + \Fld@pageobjref \Fld@annotnames /FT/Btn% \Fld@flags @@ -1409,7 +1444,7 @@ /DA(/ZaDb \strip@pt\Fld@charsize\space Tf% \ifx\Fld@color\@empty\else\space\Fld@color\fi)% /H/P% - \ifFld@checked /V/Yes\else /V/Off\fi + \ifFld@checked /V/Yes/AS/Yes\else /V/Off/AS/Off\fi \Fld@additionalactions } \ifHy@pdfa @@ -1417,6 +1452,7 @@ \def\PDFForm@Push{% /Subtype/Widget% \Fld@annotflags + \Fld@pageobjref \Fld@annotnames /FT/Btn% \Fld@flags @@ -1444,6 +1480,7 @@ \def\PDFForm@List{% /Subtype/Widget% \Fld@annotflags + \Fld@pageobjref \Fld@annotnames /FT/Ch% \Fld@flags @@ -1477,6 +1514,7 @@ \def\PDFForm@Radio{% /Subtype/Widget% \Fld@annotflags + \Fld@pageobjref \Fld@annotnames /FT/Btn% \Fld@flags @@ -1495,7 +1533,7 @@ \else /BG[\Fld@bcolor]% \fi - /CA(\Fld@radiosymbol)% + /CA(\Hy@escapestring{\Fld@radiosymbol})% >>% /DA(/ZaDb \strip@pt\Fld@charsize\space Tf% \ifx\Fld@color\@empty\else\space\Fld@color\fi)% @@ -1511,6 +1549,7 @@ \def\PDFForm@Text{% /Subtype/Widget% \Fld@annotflags + \Fld@pageobjref \Fld@annotnames /FT/Tx% \Fld@flags @@ -1546,6 +1585,7 @@ \def\PDFForm@Submit{% /Subtype/Widget% \Fld@annotflags + \Fld@pageobjref \Fld@annotnames /FT/Btn% \Fld@flags @@ -1581,6 +1621,7 @@ \def\PDFForm@Reset{% /Subtype/Widget% \Fld@annotflags + \Fld@pageobjref \Fld@annotnames /FT/Btn% \Fld@flags |