Skip navigation.
 
mlChanging origin/rotation while printing?
FROM : Ryan Cabell
DATE : Wed Oct 13 07:06:49 2004

Hi,

I'm trying to draw a view to the printer that has multiple
translateOriginToPoint: and setBoundsRotation:'s in it, and it's not
behaving like I expect it to.

The code works fine when I'm drawing to the screen, but it would appear
that when printing (or generating PDF data with
dataWithPDFinsideRect:), all the rotations and translations are
cumulative and then applied all at the end (in my case doing nothing).

Am I missing something here, or is this a bug, and if so, does anyone
know a workaround? My guess is that the screen will let me draw in
"multiple passes," so to speak, but the printer requires drawing all
with one set CTM.

BTW, I have tried using an NSBitmapImageRep to draw into, but it seems
to pick up superviews no matter what I do.

Thanks in advance,
-Ryan

Related mailsAuthorDate
No related mails found.