summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-15 00:03:34 +0000
committerKarl Berry <karl@freefriends.org>2008-09-15 00:03:34 +0000
commite202ac85bd17fa5b812fe69f55b3b349c0509399 (patch)
tree5c11375a96f8f33c030724cd96cbf8b216ab4fc4 /Master/texmf-dist/tex/latex/hyperref/hpdftex.def
parent2275af57b71af93b9bda7846e8160f47810e3945 (diff)
hyperref update (14sep08)
git-svn-id: svn://tug.org/texlive/trunk@10594 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.def71
1 files changed, 51 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
index fa4fbf443df..09c514a29d8 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def
@@ -24,7 +24,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hpdftex.def}
- [2008/08/20 v6.78g
+ [2008/09/13 v6.78j
Hyperref driver for pdfTeX]
\let\Hy@PutCatalog\pdfcatalog
\ifHy@pagelabels
@@ -734,6 +734,27 @@
\the\pdflastxform\space 0 R%
}%
}%
+\def\HyField@afields{}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname pdflastlink\endcsname\relax
+ \let\HyField@AddToFields\relax
+ \PackageInfo{hyperref}{%
+ You need pdfTeX 1.40.0 for setting the /Fields entry.\MessageBreak
+ Adobe Reader/Acrobat accepts an empty /Field array,\MessageBreak
+ but other PDF viewers might complain%
+ }%
+\else
+ \def\HyField@AddToFields{%
+ \xdef\HyField@afields{%
+ \ifx\HyField@afields\@empty
+ \else
+ \HyField@afields
+ \space
+ \fi
+ \the\pdflastlink\space 0 R%
+ }%
+ }%
+\fi
\def\@Form[#1]{%
\@ifundefined{textcolor}{\let\textcolor\@gobble}{}%
\setkeys{Form}{#1}%
@@ -741,9 +762,27 @@
\pdfrefobj\OBJ@pdfdocencoding
\pdfrefobj\OBJ@ZaDb
\pdfrefobj\OBJ@Helv
- \pdfrefobj\OBJ@acroform
\fi
- \pdfcatalog{/AcroForm \OBJ@acroform\space 0 R}%
+ \AtEndDocument{%
+ \immediate\pdfobj{%
+ <<%
+ /Fields[\HyField@afields]%
+ /DR<<%
+ /Font<<%
+ /ZaDb \OBJ@ZaDb\space 0 R%
+ /Helv \OBJ@Helv\space 0 R%
+ >>%
+ >>%
+ /DA(/Helv 10 Tf 0 g)%
+ \ifHy@pdfa
+ \else
+ /NeedAppearances true%
+ \fi
+ >>%
+ }%
+ \edef\OBJ@acroform{\the\pdflastobj}%
+ \pdfcatalog{/AcroForm \OBJ@acroform\space 0 R}%
+ }%
\MakeFieldObject{%
\begingroup
\fontfamily{pzd}%
@@ -787,6 +826,7 @@
\Hy@escapeform\PDFForm@Text
\pdfstartlink user {\PDFForm@Text}\relax
\MakeTextField{\Fld@width}{\Fld@height}\pdfendlink
+ \HyField@AddToFields
}%
\endgroup
}
@@ -878,6 +918,9 @@
}%
\relax
\MakeRadioField{\Fld@width}{\Fld@height}\pdfendlink
+ \ifnum\Fld@listcount=1 %
+ \HyField@AddToFields
+ \fi
\space % deliberate space between radio buttons
}%
}
@@ -889,6 +932,7 @@
\pdfstartlink user {\PDFForm@List}\relax
\MakeChoiceField{\Fld@width}{\Fld@height}%
\pdfendlink
+ \HyField@AddToFields
}
\def\@PushButton[#1]#2{% parameters, label
\def\Fld@name{#2}%
@@ -915,6 +959,7 @@
\pdfstartlink user {\PDFForm@Push}\relax
\MakeButtonField{#2}%
\pdfendlink
+ \HyField@AddToFields
}%
\fi
\endgroup
@@ -939,6 +984,7 @@
\relax
\MakeButtonField{#2}%
\pdfendlink
+ \HyField@AddToFields
\endgroup
}
\def\@Reset[#1]#2{%
@@ -962,6 +1008,7 @@
\pdfstartlink user {\PDFForm@Reset}\relax
\MakeButtonField{#2}%
\pdfendlink
+ \HyField@AddToFields
\fi
\endgroup
}
@@ -983,6 +1030,7 @@
\pdfstartlink user {\PDFForm@Check}\relax
\MakeCheckField{\Fld@width}{\Fld@height}%
\pdfendlink
+ \HyField@AddToFields
}%
\endgroup
}
@@ -1039,23 +1087,6 @@
>>%
}
\edef\OBJ@Helv{\the\pdflastobj}
-\pdfobj{%
- <<%
- /Fields[]%
- /DR<<%
- /Font<<%
- /ZaDb \OBJ@ZaDb\space 0 R%
- /Helv \OBJ@Helv\space0 R%
- >>%
- >>%
- /DA(/Helv 10 Tf 0 g)%
- \ifHy@pdfa
- \else
- /NeedAppearances true%
- \fi
- >>%
-}
-\edef\OBJ@acroform{\the\pdflastobj}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdfescapestring\endcsname\relax
\let\Hy@escapestring\@firstofone