Because saving & restoring the graphic state is the safest thing to do in an 
arbitrary content stream.

The CTM will be whatever it was when you entered the stream - since that's part 
of the state stack.

Leonard

-----Original Message-----
From: Trent Whitbourn [mailto:twhitbo...@gmail.com] 
Sent: Monday, June 29, 2009 12:45 AM
To: Post all your questions about iText here
Subject: [iText-questions] PdfContentByte qQ

Hi, I have a couple of questions about the lower level operations of
PdfContentByte.

Firstly, I've noticed that when I create a new PdfContentByte (using
GetUnderContent from PdfStamper)
the new PdfContentByte always appends q (save state) and Q (restore
state) to the end of itself. Why does it do this?

Secondly, what is the CTM if you restore state (Q) back to the first q
from the first content stream?

Cheers,

Billy

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to