I can't succeed at printing/previewing a document containing several pages,
each one with different page size.

On the print panel, the preview page is the always fixed to the first page
size I set in the method printOperationWithSettings, using setPaperSize

    NSPrintOperation *printOperation = [NSPrintOperation
        printOperationWithView:mPrintView printInfo:[self printInfo]];

    NSPrintInfo* printInfo = [printOperation printInfo];
    [[printInfo dictionary] addEntriesFromDictionary:printSettings];
    [printInfo setPaperSize:[self PrintViewFrame:1].size];


I have double checked, and on the method
    - (NSRect)rectForPage:(NSInteger)pageNumber
of the printView I properly return the right rect for each page, but I can't
yet get the right pageSize when previewing nor printing the document.
Any solution?



Regards
-- Leonardo


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to