• 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
Printing to NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing to NSData


  • Subject: Printing to NSData
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 19 Sep 2009 10:35:39 +0700

I am doing:
NSPrintOperation *po = [ NSPrintOperation printOperationWithView: textView printInfo: printInfo ];
...
PDFDocument *pdfFile = [ [ PDFDocument alloc ] initWithURL: pdfUrl ];
... do some post-processing here


Works fine, but looks rather inefficient, as file-IO is probably the slowest thing which can be done.

So I tried:
PDFOperationWithView:insideRect:toData:printInfo: (identical printInfo as before)
...
PDFDocument *pdfFile = [ [ PDFDocument alloc ] initWithData: pdfData ];
... do some post-processing here


but the result is just one (very long) page.

Is this a bug or did I miss some magical incantation here?


Kind regards,

Gerriet.

_______________________________________________

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: Printing to NSData
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: If someone could inspect this code and explain to me what am I doing wrong ?
  • Next by Date: Re: Printing with Snow Leopard
  • Previous by thread: Re: Static Analyzer and Core Foundation
  • Next by thread: Re: Printing to NSData
  • Index(es):
    • Date
    • Thread