[NTG-pdftex] escaped spaces in \pdfescapestring

Pawel Jackowski jackos1 at poczta.onet.pl
Thu Jun 23 14:39:00 CEST 2005

>>what is the reason to escape spaces and newlines in \pdfescapestring?

> Following the specification there is no reason[...]
> Are you sure, that nothing happens with
> control characters, eg. newlines <LF> recoded as <CR><LF>, ...?

Yes, you're absolutely right.

> In case of names:
> * Some characters such as delimiters and '#' _must_ be
>   escaped.
> * Others, such as control and 8-bit characters are
>   recommended for escaping.
> Thus \pdfescapename follows the recommendation.

I've just encountered a problem. Shouldn't \pdfescapename also escape 
`%' character?

    attr {/\pdfescapename{M\string\%Y} /Val}0

This produce corrupted output

Pawe/l Jackowski
P.Jackowski at gust.org.pl

More information about the ntg-pdftex mailing list