Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing File to PDF from Native Application



Hello all,

Long time listener, first time poster...

I'm currently working on an app which needs to open files in their native application, print to a PDF (temp file) and then load the PDF and programmatically manipulate it. The main issue I am having is finding the correct API for implementing the printing (saving to a PDF) portion.

Essentially this is the "Print" action found in Finder so I expected to find something appropriate in "Launch Services" but that doesn't seem to contain what I need. I figured I could create a default printer that prints to temp PDF files, fire off a "print method" that would load the native app and print to the default printer, look in the temp folder for the new PDF, load that into my app, do what I need to do with it and then delete the temp file.

Sounds easy in theory, but I'm just not seeing what I need in the standard APIs, either Cocoa or Core Foundation.

Any ideas or nudges in the right direction are greatly appreciated.

Thank you,
Jeff
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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 © 2007 Apple Inc. All rights reserved.