• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Print Preview with different page size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Print Preview with different page size
      • From: Graham Cox <email@hidden>
  • Prev by Date: CoreData regression or performance problem, anyone?
  • Next by Date: Re: CoreData regression or performance problem, anyone?
  • Previous by thread: Re: CoreData regression or performance problem, anyone?
  • Next by thread: Re: Print Preview with different page size
  • Index(es):
    • Date
    • Thread