On Tue, May 08, 2007 at 01:39:45PM +0200, Pawe?? Jackowski wrote:
1 0 0 1 115.925 622.631 cm Q 1 0 0 1 12 0 cm Q 1 0 0 1 -115.925 -622.631 cm The switched last two lines probably cause your trouble.
Of course it does, that is exactly what I'm talking about.
I wouldn't use "page" for stuff that affects the transform matrix. See also the latest pdftex.def.
This is not the question of my preferences, I'm showing a heavy inconsistence in pdfTeX behaviour. Look:
1\pdfliteral direct{q}2% \pdfliteral{q}3% \pdfliteral{Q}4% \pdfliteral direct{Q}% 5\end
This gives exactly what I expect. But now just replace '4' with a space:
1\pdfliteral direct{q}2% \pdfliteral{q}3% \pdfliteral{Q} % \pdfliteral direct{Q}% 5\end
and you get something completely different and hopelessly spoiled
The reason is that the transformation matrix is not serialized until pdfTeX thinks its necessary.
That's the point. You are saying with "page" or "direct" that
it is not necessary. But "Q" changes the transform matrix. Thus
you should not use "q" and "Q" with keywords "page" or "direct".
Yours sincerely
Heiko