Re: How do you create a new PDF file and write text to it?
Re: How do you create a new PDF file and write text to it?
- Subject: Re: How do you create a new PDF file and write text to it?
- From: Charles Steinman <email@hidden>
- Date: Wed, 6 Aug 2008 11:42:41 -0700 (PDT)
--- On Wed, 8/6/08, Paul Archibald <email@hidden> wrote:
> It looks like PDFKit is aimed at simply reading and
> navigating within
> an existing PDF file, but what I need to do is create a new
> PDF and
> write some simple text to it. I know that the Preview app
> does that
> for a lot of apps, but I would like to bypass that, too. I
> simply
> want my app to create a PDF file, open it for writing,
> write some
> simple text to it, and save it to disk.
Easiest way: Create a view that draws what you want, send it -dataWithPDFInsideRect: and write that data to a file.
Cheers,
Chuck
_______________________________________________
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