• 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
Re: NSImage to PDFPage in Tiger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSImage to PDFPage in Tiger?
      • From: Jerry LeVan <email@hidden>
References: 
 >NSImage to PDFPage in Tiger? (From: Jerry LeVan <email@hidden>)

  • Prev by Date: Re: struct into a pasteboard
  • Next by Date: Re: struct into a pasteboard
  • Previous by thread: NSImage to PDFPage in Tiger?
  • Next by thread: Re: NSImage to PDFPage in Tiger?
  • Index(es):
    • Date
    • Thread