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

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


Hello,

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:

/Contents(\376\377\000L\000I\000N\000E\0001\nLI\000N\000E\0002)

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:

/Contents(\376\377\000L\000I\000N\000E\0001\rLI\000N\000E\0002)

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

gives me:

/Contents(\376\377\000L\000I\000N\000E\0001\000\134\000\040\000L\000I\000N\000E\0002)

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

Any ideas?

Cheers,
Rob.



More information about the pdftex mailing list