How can I create a PDF document from a string in a non-GUI application?
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