Custom Pagination and Scaling
Custom Pagination and Scaling
- Subject: Custom Pagination and Scaling
- From: "Gary J.H. Atkinson" <email@hidden>
- Date: Thu, 27 Feb 2003 13:27:50 +0000
I have just implemented custom pagination by overriding the
-(BOOL)knowsPageRange:
And
-(NSRect)rectForPage:
Methods.
These are printing the correct areas of my CustomView, however, the printed
output is always scaled to 100%, whereas I require to set the scale to
something larger.
If I check the scale using:
NSPrintInfo *pi = [[NSPrintOperation currentOperation] printInfo];
float scale = [[[pi dictionary] objectForKey:NSPrintScalingFactor]
floatValue];
Which I do in -(NSRect)rectForPage: I find that the scale is correctly set,
but that it is being ignored.
Is this a bug and if so is there a workaround, or do I need to do something
else for custom pagination?
Regards,
--
Gary J.H. Atkinson
Kudlian Soft
email@hidden
_______________________________________________
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.