[pdftex] Problem with pdf inclusion

Paweł Jackowski P.Jackowski at gust.org.pl
Wed Feb 17 20:55:33 CET 2010

Martin Schröder wrote:
> 2010/2/17 Paweł Jackowski <P.Jackowski at gust.org.pl>:
>> Streams structure is awful, but looks ok:
>> 174 0 obj
>> << /Length 10 >>
>> stream
>> /SPIPa1 Do
>> endstream
>> endobj
> This stream is one byte short: There is no space after the Do.
> "If the value is an array, the effect shall be as if all of the
> streams in the array were concatenated, in order, to form a single
> stream."

You're right but then "The division between streams may occur only at 
the boundaries between lexical tokens". Which means you may never have

	100 0 obj
	<< /Length 1 >>
	stream D endstream
	101 0 obj
	<< /Length 1 >>
	stream o endstream

which means in turn it is safe to append a whitespace if missing.
Ghostscript and Acrobat does - they display the source with no errors. 
And while rewriting the document and merging streams, the output is 
still valid.
Pawe/l Jackowski
P.Jackowski at gust.org.pl

More information about the pdftex mailing list