Hello,
Of course (although according to the PDF spec, line ends need not be escaped):
| Within a literal string, the backslash (\) is used as an escape | character for various purposes, such as to include newline characters, | [...]
But that does not mean that a newline *must* be escaped.
and
| If a string is too long to be conveniently placed on a single line, it | may be split across multiple lines by using the backslash character at | the end of a line to indicate that the string continues on the | following line. The backslash and the end-of-line marker following it | are not considered part of the string.
Yes, but as the newline is stripped from the string, this is just for convenience when creating a PDF document or parts of it in a text editor. Like the \<newline> combination in Java's resource bundles.
and
| If an end-of-line marker appears within a literal string without a | preceding backslash, the result is equivalent to \n (regardless of | whether the end-of-line marker was a carriage return, a line feed, or both).
You are correct; when not escaped, a newline might be changed. Although if the string is a text string (opposed to containing binary data), this should not matter.
Yours sincerely Heiko
Jonathan