16 Feb
2006
16 Feb
'06
9:20 a.m.
On Thu, Feb 16, 2006 at 09:43:35AM +0100, Heiko Oberdiek wrote:
Example for illustration:
Another example that shows the purpose of the \pdfescape* primitives: \begingroup \obeylines \def^^M{^^J}% \obeyspaces \immediate\pdfobj{<< /Name (String) /Hello#World (Hello#World) /abc/\relax0 (abc/\relax0) The result is invalid PDF. With the \string\pdfescape* functions we get valid PDF name and string objects: /\pdfescapename{Name} (\pdfescapestring{String}) /\pdfescapename{Hello#World} (\pdfescapestring{Hello#World}) /\pdfescapename{abc/\relax_x} (\pdfescapestring{abc/\relax_x})
}% \endgroup
\nopagenumbers
\null
\end
Yours sincerely
Heiko