In Cocoa, do I need to do my own scaling in drawRect: if I want to do the usual pagination while printing?

Automatic pagination works fine with the zoom factor that I set to the NSPrintInfo object. But then I switch to implementing my own pagination scheme.

Yes, I used the scaling factor to compute the rectangles that span the entire view, but the scaling factor does not appear to be executed automatically, as shown in automatic pagination.

So ... does this mean that I have my own scaling in my drawRect: to evaluate the scale factor in NSPrintInfo during printing?

+5
source share
1 answer

No. Just make sure you match paperSize and imageablePageBounds

0
source

All Articles