• 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: How do you create a new PDF file and write text to it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How do you create a new PDF file and write text to it? LOOKS LIKE ITS SOLVED
      • From: Paul Archibald <email@hidden>
References: 
 >How do you create a new PDF file and write text to it? (From: Paul Archibald <email@hidden>)

  • Prev by Date: How do you create a new PDF file and write text to it?
  • Next by Date: Re: How do you create a new PDF file and write text to it? LOOKS LIKE ITS SOLVED
  • Previous by thread: How do you create a new PDF file and write text to it?
  • Next by thread: Re: How do you create a new PDF file and write text to it? LOOKS LIKE ITS SOLVED
  • Index(es):
    • Date
    • Thread