diff options
author | Hans Hagen <pragma@wxs.nl> | 2002-01-11 00:00:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2002-01-11 00:00:00 +0100 |
commit | 736de6a312c37fbb8cea65cf0a86eda7dbbe0575 (patch) | |
tree | ad6691db97ee31450f9ca5b30a90a22df067331b /tex/context/base/spec-pdf.tex | |
parent | 398264e8338d79fc389c76f0a1f0b30e4442f4e3 (diff) | |
download | context-736de6a312c37fbb8cea65cf0a86eda7dbbe0575.tar.gz |
stable 2002.01.11
Diffstat (limited to 'tex/context/base/spec-pdf.tex')
-rw-r--r-- | tex/context/base/spec-pdf.tex | 57 |
1 files changed, 33 insertions, 24 deletions
diff --git a/tex/context/base/spec-pdf.tex b/tex/context/base/spec-pdf.tex index 576d99925..6c8215c1f 100644 --- a/tex/context/base/spec-pdf.tex +++ b/tex/context/base/spec-pdf.tex @@ -167,8 +167,8 @@ {\bgroup \setPDFdestination{#1}% \doifsomething{\PDFdestination} - {\ScaledPointsToBigPoints{#2}\width - \ScaledPointsToBigPoints{#3}\height + {\PointsToBigPoints{#2}\width + \PointsToBigPoints{#3}\height \special {\@@insertpostscriptretain [ /Title (\PDFdestination) @@ -208,9 +208,9 @@ {\bgroup \setbox\nextbox=\hbox\bgroup \bgroup - \ScaledPointsToBigPoints{#3}\width - \ScaledPointsToBigPoints{#4}\height - \ScaledPointsToBigPoints{#5}\depth + \PointsToBigPoints{#3}\width + \PointsToBigPoints{#4}\height + \PointsToBigPoints{#5}\depth \dosetobjectreference{#1}{#2}{#1::#2}% \special {\@@insertpostscriptretain @@ -331,18 +331,25 @@ \xdef\lastPDFaction{#3}% \else \bgroup - \xdef\lastPDFaction{<<#3>>}% - % 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 + % does not work well with distiller 4 + %\ifsharePDFactions + % \ifcase\similarreference\relax + % \xdef\lastPDFaction{<<#3>>}% + % \or + % \global\advance\nofPDFsimilar by 1 + % \special + % {\@@insertpostscriptretain + % [ /_objdef {PDF::sim:\the\nofPDFsimilar} /type /dict /OBJ pdfmark + % [ {PDF::sim:\the\nofPDFsimilar} <<#3>>\space /PUT pdfmark}% + % \xdef\lastPDFaction{{PDF::sim:\the\nofPDFsimilar}}% + % \else + % % leave \lastPDFaction untouched + % \fi + %\else + \xdef\lastPDFaction{<<#3>>}% + %\fi + \PointsToBigPoints{#1}\width + \PointsToBigPoints{#2}\height \special {\@@insertpostscriptretain [ /Action \lastPDFaction\space @@ -357,8 +364,8 @@ \def\doPDFannotation width #1 height #2 data #3% {\bgroup - \ScaledPointsToBigPoints{#1}\width - \ScaledPointsToBigPoints{#2}\height + \PointsToBigPoints{#1}\width + \PointsToBigPoints{#2}\height \special {\@@insertpostscriptretain [ /Rect [0 0 \width\space \height] #3 @@ -368,8 +375,8 @@ \def\doPDFannotationobject class #1 name #2 width #3 height #4 data #5% {\bgroup - \ScaledPointsToBigPoints{#3}\width - \ScaledPointsToBigPoints{#4}\height + \PointsToBigPoints{#3}\width + \PointsToBigPoints{#4}\height \special {\@@insertpostscriptretain [ /_objdef {#1::#2} @@ -415,12 +422,16 @@ {\@@insertpostscriptretain [ {ThisPage} << #1 >> /PUT pdfmark}}} +\def\doPDFpageresource#1% + {\message{[skipping PDF resource]}} + \def\doPDFpagesattribute#1% {\doifsomething{#1} {\special {\@@insertpostscriptretain [ #1 /PAGES pdfmark}}} +\let\doPDFresetpageresources =\relax \let\doPDFresetpageattributes=\relax %D \macros @@ -455,6 +466,4 @@ \stopspecials -\protect - -\endinput +\protect \endinput |