Re:Problem printing offscreen PDFViews
Re:Problem printing offscreen PDFViews
- Subject: Re:Problem printing offscreen PDFViews
- From: Kevin Bracey <email@hidden>
- Date: Mon, 15 Aug 2011 14:01:11 +1200
Old follow up to help anyone else who might wish to print PDFs.
Having just run into the same problem as Waldo. I found the Apple Sample Code: PDFView a good starting point.
While it no longer opens in Xcode 4.2 adding PDFImageView to my project worked fine.
By changing the load code to use pdfRep = [NSPDFImageRep imageRepWithData:pdfData]; instead of pdfRep = [NSPDFImageRep imageRepWithContentsOfFile: path];
there is no reason to write the PDFDocument to disk.
cheers
Kevin_______________________________________________
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