Re: NSAttributedString and PDF
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