Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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?



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


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.