diff options
Diffstat (limited to 'tex/context/base/spec-pdf.tex')
-rw-r--r-- | tex/context/base/spec-pdf.tex | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/tex/context/base/spec-pdf.tex b/tex/context/base/spec-pdf.tex index 50733a835..58a8876a2 100644 --- a/tex/context/base/spec-pdf.tex +++ b/tex/context/base/spec-pdf.tex @@ -8,15 +8,15 @@ %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is -%C therefore copyrighted by \PRAGMA. See mreadme.pdf for -%C details. +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. % funny things: mail to yeny: "please geen auto-crlf in special" \unprotect %D This driver is build on top of the general \PDF\ macros, -%D as defined in \type{spec-fdf}, so we inherit that one. +%D as defined in \type{spec-fdf}, so we inherit that one. \startspecials[pdf][fdf] @@ -27,7 +27,7 @@ %D Instead of a prolog, we can put the code in the file %D ourselve. %D -%D \starttypen +%D \starttyping %D \definespecial\dosetupinteraction% %D {\special %D {\@@insertpostscriptretain @@ -35,14 +35,14 @@ %D {pop} %D {userdict /pdfmark /cleartomark load put} %D ifelse}} -%D \stoptypen +%D \stoptyping %D %D We decided to use a prolog file. The following code has to %D be put somewhere, e.g.\ in the startup directory of %D \DISTILLER. To overcome problems, we always embed the fonts, %D but copyrights force us always to make subsets. %D -%D \starttypen +%D \starttyping %D /currentdistillerparams where %D { pop } { userdict /currentdistillerparams { 1 dict } put } ifelse %D @@ -56,12 +56,12 @@ %D /MaxSubsetPct 99 %D /EmbedAllFonts true %D /SubSetFonts true >> setdistillerparams -%D \stoptypen +%D \stoptyping %D %D Beware, this is the PostScript Level 2 way of doing things. -\definespecial\dosetupinteraction% - {\showmessage{\m!interactions}{21}{acrobat}} +\definespecial\dosetupinteraction + {\showmessage\m!interactions{21}{acrobat}} \definespecial\dosetupopenaction {\doPDFsetupopenaction} \definespecial\dosetupcloseaction{\doPDFsetupcloseaction} @@ -98,7 +98,7 @@ %D have to misuse the page attributes. Beware, the preambles %D must be packed. -\definespecial\doflushJSpreamble#1% +\definespecial\doflushJSpreamble#1% {\bgroup \ifoneJSpreamble \edef\sanitizedJScode{\getJSpreamble{#1}}% @@ -137,15 +137,15 @@ %D {dosetupscreen, %D dosetupidentity} %D -%D We can set up the page dimensions, full screen start up +%D We can set up the page dimensions, full screen start up %D mode and identify the file with: -\definespecial\dosetupscreen {\doPDFsetupscreen \printpapierhoogte} +\definespecial\dosetupscreen {\doPDFsetupscreen \printpaperheight} -\definespecial\dosetupartbox {\doPDFsetupartbox \printpapierhoogte} -\definespecial\dosetupcropbox {\doPDFsetupcropbox \printpapierhoogte} -\definespecial\dosetupbleedbox{\doPDFsetupbleedbox\printpapierhoogte} -\definespecial\dosetuptrimbox {\doPDFsetuptrimbox \printpapierhoogte} +\definespecial\dosetupartbox {\doPDFsetupartbox \printpaperheight} +\definespecial\dosetupcropbox {\doPDFsetupcropbox \printpaperheight} +\definespecial\dosetupbleedbox{\doPDFsetupbleedbox\printpaperheight} +\definespecial\dosetuptrimbox {\doPDFsetuptrimbox \printpaperheight} \definespecial\dosetupidentity{\doPDFsetupidentity} @@ -249,10 +249,10 @@ \definespecial\dosetpagetransition{\doPDFsetpagetransition} -%D \macros +%D \macros %D {doinsertcomment, doflushcomments} %D -%D I never needed (and used) one until now, but here is the +%D I never needed (and used) one until now, but here is the %D text annotation special: \definespecial\doinsertcomment{\doPDFinsertcomment} @@ -278,7 +278,7 @@ %D \macros %D {dodefinefieldset,dogetfieldset,doiffieldset} -%D +%D %D Field sets, used in resetting and submitting, are handled %D by: @@ -288,8 +288,8 @@ %D \macros %D {doregistercalculationset} -%D -%D The calculation order is defined using: +%D +%D The calculation order is defined using: \definespecial\doregistercalculationset{\doFDFregistercalculationset} @@ -321,11 +321,11 @@ \newif\ifsharePDFactions \sharePDFactionstrue \def\dodoPDFaction#1#2#3#4% - {\ifcollectreferenceactions + {\ifcollectreferenceactions \xdef\lastPDFaction{#4}% \else \bgroup - % does not work well with distiller 4 + % does not work well with distiller 4 %\ifsharePDFactions % \ifcase\similarreference\relax % \xdef\lastPDFaction{<<#4>>}% @@ -337,7 +337,7 @@ % [ {PDF::sim:\the\nofPDFsimilar} <<#4>>\space /PUT pdfmark}% % \xdef\lastPDFaction{{PDF::sim:\the\nofPDFsimilar}}% % \else - % % leave \lastPDFaction untouched + % % leave \lastPDFaction untouched % \fi %\else \xdef\lastPDFaction{<<#4>>}% @@ -352,7 +352,7 @@ /Border [0 0 0] \ifhighlighthyperlinks \else /H /N \fi /Subtype /Link - /ANN + /ANN pdfmark}% \egroup \fi} @@ -388,10 +388,10 @@ {\dodoPDFaction{/_objdef {#1::#2}}{#3}{#4}{#5}% \dosetobjectreference{#1}{#2}{#1::#2}} -%D \macros +%D \macros %D {doPDFdictionaryobject,doPDFarrayobject} -%D -%D These two macros are used to build low level objects. +%D +%D These two macros are used to build low level objects. \def\doPDFdictionaryobject class #1 name #2 data #3% {\special @@ -407,11 +407,11 @@ [ {#1::#2} 0 [#3] /PUTINTERVAL pdfmark}% \dosetobjectreference{#1}{#2}{#1::#2}} -%D \macros +%D \macros %D {doPDFaddtocatalog,doPDFaddtoinfo, %D doPDFpageattribute,doPDFpagesattribute} -%D -%D Next come our housekeeping macros. +%D +%D Next come our housekeeping macros. \def\doPDFaddtocatalog#1% {\doifsomething{#1} @@ -419,9 +419,9 @@ {\@@insertpostscriptretain [ {Catalog} << #1 >> /PUT pdfmark}}} -\def\doPDFaddtoinfo#1% unchecked +\def\doPDFaddtoinfo#1% unchecked {\special - {\@@insertpostscriptretain + {\@@insertpostscriptretain [ #1 /DOCINFO pdfmark}} % [ {DocInfo} << #1 >> /PUT pdfmark}} \def\doPDFpageattribute#1% @@ -442,10 +442,10 @@ \let\doPDFresetpageresources =\relax \let\doPDFresetpageattributes=\relax -%D \macros +%D \macros %D {doPDFbookmark} %D -%D This is how we force bookmarks entries in the file. +%D This is how we force bookmarks entries in the file. \def\doPDFbookmark level #1 n #2 text #3 page #4 open #5% {\special @@ -457,7 +457,7 @@ /OUT pdfmark}} -%D \macros +%D \macros %D {defaultobjectreference,doPDFgetobjectreference} %D %D The object references are \type{{named}}, that is, no hard |