• 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: NSAttributedString and PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString and PDF


  • Subject: Re: NSAttributedString and PDF
  • From: John Calhoun <email@hidden>
  • Date: Mon, 29 Jan 2007 13:09:15 -0800

On Jan 27, 2007, at 4:26 AM, Julio Cesar Silva dos Santos wrote:
My code so far:

PDFDocument * myPDF = [[PDFDocument alloc] initWithData:[myTextView dataWithPDFInsideRect:[myTextView bounds]]];
[myPDF writeToFile:[@"~/Documents" stringByExpandingTildeInPath]];


If I get the data of the NSAttributedString (using dataFromRange:) the PDF document is not created because it lacks the '%PDF' tag.

I don't quite follow your last comment. A PDF is not created from the two lines of code you provided? You can't open it in Preview or Adobe Reader?


john calhoun—_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >NSAttributedString and PDF (From: Julio Cesar Silva dos Santos <email@hidden>)

  • Prev by Date: NSViewAnimation and fading in NSWindow
  • Next by Date: Re: NSViewAnimation and fading in NSWindow
  • Previous by thread: Re: NSAttributedString and PDF
  • Next by thread: Strange results when converting NSDate timeIntervalSinceReferenceDate to NSPoint
  • Index(es):
    • Date
    • Thread