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

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



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