Re: dataWithPDFInsideRect and NSPrintOperation
Re: dataWithPDFInsideRect and NSPrintOperation
- Subject: Re: dataWithPDFInsideRect and NSPrintOperation
- From: Gideon King <email@hidden>
- Date: Sat, 12 Jun 2010 02:30:16 +1000
Thanks for the code Graham. I implemented it just with a simple boolean to control whether it is really printing or not, and that will be sufficient for my current needs, but I'll keep your solution in mind for if I come across it again.
Gideon
On 11/06/2010, at 10:36 PM, Graham Cox wrote:
>
> I don't know the direct answer to your question, but there are alternative ways to get PDF data out of a view, as a I put together some code to do almost exactly that last week.
>
> Essentially you create a PDF graphics context and draw into that. -isDrawingToScreen should still return NO but AFAICT no print operation comes into play.
>
> ...
>
_______________________________________________
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