Print Preview with different page size
Print Preview with different page size
- Subject: Print Preview with different page size
- From: Leonardo <email@hidden>
- Date: Wed, 12 Nov 2014 18:44:10 +0100
- Thread-topic: Print Preview with different page size
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 (email@hidden)
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:
This email sent to email@hidden