[Dev-luatex] \n bug in beta 0.67?

Heiko Oberdiek heiko.oberdiek at googlemail.com
Sun Apr 24 08:07:28 CEST 2011


On Sun, Apr 24, 2011 at 01:47:59AM +0200, Martin Schröder wrote:

> 2011/4/24 Graham Douglas <graham.douglas at readytext.co.uk>:
> > Running under 0.67 with \pdfcompresslevel =0 gives the following PDF
> > content around a 45 0 obj which looks like a newline is missing
> >
> > ....
> > 45 0 obj
> > 306endobj <------ looks wrong
> 
> I can't reproduce this. What's your input and your exact version?

I can "reproduce" the opposite, a extra new lines:
checkout from trunk: beta-0.67.0-2011042407 (rev 4192)
System: i386-linux

%%% test.pdf %%%
1 0 obj
306

endobj
4 0 obj
<</Length 0
>>

stream
endstream
endobj
3 0 obj
<</Type/Page
/Contents 4 0 R
%%% test.pdf %%%

%%% test.tex %%%
\catcode`\{=1
\catcode`\}=2
\directlua{tex.enableprimitives('',
  {'pdfobj','pdfobjcompresslevel','pdfcompresslevel','pdfoutput'})}
\pdfoutput=1
\pdfobjcompresslevel=0
\pdfcompresslevel=0
\immediate\pdfobj{306}
\shipout\hbox{}
\csname @@end\endcsname\end
%%% test.tex %%%

compiled with "luatex --ini test".

In comparison:

%%% test.pdf beta-0.66.0-2011041418 (rev 4141) %%%
1 0 obj
306
endobj
4 0 obj <<
/Length 0         
>>
stream
endstream
endobj
3 0 obj <<
/Type /Page
%%% test.pdf %%%

Yours sincerely
  Heiko Oberdiek


More information about the dev-luatex mailing list