[pdftex] \pdfstringdef doesn't like newline code in Unicode document?

Roboco Sanchez roboco at gmail.com
Thu Jul 29 11:46:50 CEST 2004


I'm trying to have multiple-line text in annotation box in unicode
document. I've tried this,

\pdfstringdef\annot at text{LINE1\string\n LINE2}

and I got this in the PDF:


which gave me some Chinese characters after LINE1.

I've also tried,

\pdfstringdef\annot at text{LINE1\string\r LINE2}

which gave me something of the same:


However this works for a backslash,
\pdfstringdef\annot at text{LINE1\string\\ LINE2}

gives me:


So for now I'm using this and change \134 to \015 in the PDF manually
to get a new line.

Any ideas?


More information about the pdftex mailing list