• 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: Creating a file containing both an image and text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Creating a file containing both an image and text


  • Subject: RE: Creating a file containing both an image and text
  • From: Arthur C. <email@hidden>
  • Date: Thu, 17 Jan 2008 21:29:07 +0100
  • Importance: Normal

> But the question remains: how can I add text (from an NSString) to this PDF? > Or alternatively, like in my first attempt, how to include the PDF image into an RTFD file.
A working solution (although not the most elegant) is to create a simple RTFD file using TextEdit, containing a PDF image and some text.
Then, paste the RTF header in our Cocoa program, and substitute our own PDF image from
  [NSWindow dataWithPDFInsideRect: myRect]
and our own text...
Saving that to a folder named '.../myRTFD.rtfd' including the pdf file and 'TXT.rtf' does the job.


Best regards,

Arthur C.



_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________

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

References: 
 >Creating a file containing both an image and text (From: Arthur C. <email@hidden>)
 >Re: Creating a file containing both an image and text (From: Andrew Farmer <email@hidden>)
 >RE: Creating a file containing both an image and text (From: Arthur C. <email@hidden>)

  • Prev by Date: Re: NSLog broken after call of NSTask and setStandardError
  • Next by Date: Re: new API for MacBook Air for Multi-touch trackpad?
  • Previous by thread: RE: Creating a file containing both an image and text
  • Next by thread: Re: Creating a file containing both an image and text
  • Index(es):
    • Date
    • Thread