• 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
How can I create a PDF document from a string in a non-GUI application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I create a PDF document from a string in a non-GUI application?


  • Subject: How can I create a PDF document from a string in a non-GUI application?
  • From: email@hidden
  • Date: Wed, 17 May 2006 13:49:52 +0100

Hi all.

I am trying to create and save a PDF document where the contents of the PDF file is derived from a passed-in NSString. The method in question is in an application without a graphical component, so a solution using NSView's dataWithPDFInsideRect: seem to be out, as does using NSPrintOperation and its printOperationWithView:printInfo: method as this also takes an NSView as an argument.

I have also looked at PDFKit's PDFDocument intWithData:, but as I only have a string and this method requires PDF data encapsulated in an NSData object, this isn't helping much (passing in the string contents as a NSData object drew a blank)!

Does anyone have any ideas as to where I can direct my efforts, or have I overlooked something in the methods I mentioned earlier?

cheers

Will


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How can I create a PDF document from a string in a non-GUI application?
      • From: "Johan Kool" <email@hidden>
    • Re: How can I create a PDF document from a string in a non-GUI application?
      • From: Scott Thompson <email@hidden>
  • Prev by Date: Re: Displaying Core Data using Cocoa binding programmatically
  • Next by Date: Re: NSMenuItem
  • Previous by thread: Re: programmatically determining if the machine is intel or not
  • Next by thread: Re: How can I create a PDF document from a string in a non-GUI application?
  • Index(es):
    • Date
    • Thread