Java docs only say that getTransform() should return a copy and iText does
it. iText does not create a copy in setTransform(), maybe it should.

Best Regards,
Paulo Soares

----- Original Message -----
From: "ben lim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 22:49
Subject: [iText-questions] Graphics2D setTransform method


> Hi,
> I'm using iText to create a PDF file from a java program that outputs
> stuff to the printer. I just substitute the Graphics2D object I get from
> PdfContentByte and let iText do its magical stuff. Voila, it works very
> well, except for...
>
> In my code, I save the Transform using Graphics2D's getTransform() and
> then do some text drawings at various locations. Then I do a
> setTransform to restore the previously saved transform. I notice that
> iText modifies the saved Transform while doing its drawing - that is, it
> does not create a local copy, so that later on in the code, when I use
> the saved Transform again, it has been unexpectedly modified by iText.
> This is inconsistent with Java's behaviour.
> Thanks,
> Ben
>
>
>
>   _____
>
> Do you Yahoo!?
> Free online calendar
> <http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.com>  with
> sync to Outlook(TM).
>




-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to