summaryrefslogtreecommitdiff
path: root/tex/context/base/spec-pdf.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/spec-pdf.tex')
-rw-r--r--tex/context/base/spec-pdf.tex66
1 files changed, 17 insertions, 49 deletions
diff --git a/tex/context/base/spec-pdf.tex b/tex/context/base/spec-pdf.tex
index 6b1565eff..576d99925 100644
--- a/tex/context/base/spec-pdf.tex
+++ b/tex/context/base/spec-pdf.tex
@@ -326,55 +326,23 @@
\newif\ifsharePDFactions \sharePDFactionstrue
-% \def\doPDFaction width #1 height #2 action #3%
-% {\bgroup
-% \ScaledPointsToBigPoints{#1}\width
-% \ScaledPointsToBigPoints{#2}\height
-% \ifnum\similarreference=1
-% %\ifsharePDFactions
-% % \global\advance\nofPDFsimilar by 1
-% % \special
-% % {\@@insertpostscriptretain
-% % [ /_objdef {PDF::sim:\the\nofPDFsimilar} /type /dict /OBJ pdfmark
-% % [ {PDF::sim:\the\nofPDFsimilar} << #3 >> /PUT pdfmark}%
-% % \xdef\lastFDFaction{{PDF::sim:\the\nofPDFsimilar}}%
-% %\else
-% \xdef\lastFDFaction{<<#3>>}%
-% %\fi
-% \fi
-% \special
-% {\@@insertpostscriptretain
-% [ \ifcase\similarreference
-% /Action <<#3>>
-% \else
-% /Action \lastFDFaction\space
-% \fi
-% /Rect [0 0 \width\space \height]
-% /Border [0 0 0]
-% /Subtype /Link
-% /ANN
-% pdfmark}%
-% \egroup}
-
\def\doPDFaction width #1 height #2 action #3%
- {\bgroup
- \ScaledPointsToBigPoints{#1}\width
- \ScaledPointsToBigPoints{#2}\height
- \ifcase\similarreference\relax
+ {\ifcollectreferenceactions
+ \xdef\lastPDFaction{#3}%
+ \else
+ \bgroup
\xdef\lastPDFaction{<<#3>>}%
- \or
- %\ifsharePDFactions
- % \global\advance\nofPDFsimilar by 1
- % \special
- % {\@@insertpostscriptretain
- % [ /_objdef {PDF::sim:\the\nofPDFsimilar} /type /dict /OBJ pdfmark
- % [ {PDF::sim:\the\nofPDFsimilar} << #3 >> /PUT pdfmark}%
- % \xdef\lastPDFaction{{PDF::sim:\the\nofPDFsimilar}}%
- %\else
- \xdef\lastPDFaction{<<#3>>}%
- %\fi
- \fi
- \ifcollectreferenceactions \else
+ % does not work well with distiller 4
+ % \ifcase\similarreference\relax\or\ifsharePDFactions
+ % \global\advance\nofPDFsimilar by 1
+ % \special
+ % {\@@insertpostscriptretain
+ % [ /_objdef {PDF::sim:\the\nofPDFsimilar} /type /dict /OBJ pdfmark
+ % [ {PDF::sim:\the\nofPDFsimilar} \lastPDFaction\space /PUT pdfmark}%
+ % \xdef\lastPDFaction{{PDF::sim:\the\nofPDFsimilar}}%
+ % \fi\fi
+ \ScaledPointsToBigPoints{#1}\width
+ \ScaledPointsToBigPoints{#2}\height
\special
{\@@insertpostscriptretain
[ /Action \lastPDFaction\space
@@ -384,8 +352,8 @@
/Subtype /Link
/ANN
pdfmark}%
- \fi
- \egroup}
+ \egroup
+ \fi}
\def\doPDFannotation width #1 height #2 data #3%
{\bgroup