REPOST: Problem taking scale into account while printing
REPOST: Problem taking scale into account while printing
- Subject: REPOST: Problem taking scale into account while printing
- From: Joseph Jones <email@hidden>
- Date: Fri, 7 Mar 2003 09:46:26 -0800
- Resent-date: Wed, 12 Mar 2003 19:13:36 -0800
- Resent-from: Joseph Jones <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Cocoa Dev Dev <email@hidden>
Hi,
I seem to be unable to take scale into account in my printing and
getting a good print out. I take the scale set in the print info and
adjust the number of pages I am printing by that. So, if normally I
wold be printing 6 pages at 100%, then I calculate 3 pages at 50%. I
then return the appropriate page rect from rectForPage such that, if
the normal pageWidth/Height at 100% is 100, then the new
pageWidth/Height is 200. However, when drawRect is called, the bounding
rect passed in is still the original 100x100 rect.
OK, NP, I'll just scale the drawing surface using an affine transform
and setting scaleBy to the scale set from the print info. However, when
I view the preview of the print out, my drawing i shifted up and to the
left so that it doesn't fit on the page. The higher the scale factor,
the worse it gets till it disappears off the printed page.
Can anyone tell me what I am doing wrong here?
Thanx,
joe
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.