Re: NSImage to PDFPage in Tiger?
Re: NSImage to PDFPage in Tiger?
- Subject: Re: NSImage to PDFPage in Tiger?
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 22 Dec 2007 12:29:59 -0800
On Dec 21, 2007, at 11:56 AM, Jerry LeVan wrote:
I don't seem to be able to find a recipe for generating a PDFPage
from a
NSImage using methods available in the 10.4 Universal SDK that give
the same
results as the -initWithImage method in PDFPage. ie generate a
PDFPage from
a NSImage.
Could someone point me in the right direction?
I haven't tried this, but the first thing I would try would be to put
the NSImage into an NSImageView, then call -dataWithPDFInsideRect: to
turn the image into a PDF, then create a PDFDocument with the data,
and then get the resulting PDFPage from the PDFDocument... This is, of
course, assuming the NSImage has only a bitmap representation.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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