[Dev-luatex] [luatex 0000283]: PDF streams data should not be validated in UTF-8 regime

Paweł Jackowski P.Jackowski at gust.org.pl
Fri Nov 20 17:51:17 CET 2009


Taco Hoekwater wrote:
> Hi,
> 
> Paweł Jackowski wrote:
>> So once you say
>>
>>   pdf.obj{type = "stream", string = string.char(255)}
>>   pdf.obj("stream", string.char(255))
>>
>> you don't use an explicit string, but you still get the error.
> 
> This error we can avoid with a simple patch to luatex.
> 
> Currently the stream is still converted to a token list, while
> there is absolutely no reason to do so.

And will be just perfect!

>> -- lua function returning the stream once called?
>> pdf.obj{type = "stream", data = function() return string.char(255) end}
>>
>> -- array of integers representing bytes to be written?
>> pdf.obj{type = "stream", data = {255}}
> 
> brrr

And then absolutely agree with Hans brrr ;)

Thank you, Paweł
-- 
Pawe/l Jackowski
P.Jackowski at gust.org.pl


More information about the dev-luatex mailing list