Re: How can I create a PDF document from a string in a non-GUI application?
Re: How can I create a PDF document from a string in a non-GUI application?
- Subject: Re: How can I create a PDF document from a string in a non-GUI application?
- From: "Johan Kool" <email@hidden>
- Date: Thu, 18 May 2006 11:45:51 +0200
Hi Will,
Well, you can of course still link to the AppKit framework and use
NSView. Just because you are writing a CLI application, doesn't mean
you can't use this framework and its objects. After all, just because
you create/use a NSView object doesn't mean you also have to display
it on screen at some point.
Of course you might have your reasons for not wanting to use AppKit,
but I thought it might be good to point this out.
Kinds regards,
Johan
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.
--
http://www.johankool.nl/
_______________________________________________
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