Re: How to switch the default printer?
Re: How to switch the default printer?
- Subject: Re: How to switch the default printer?
- From: David Duncan <email@hidden>
- Date: Thu, 15 Oct 2009 11:05:44 -0700
On Oct 15, 2009, at 10:58 AM, Laurent Daudelin wrote:
Yes, I know, it's terrible, but it's part of being able to convert
any document to PDF and so far, I haven't found any other way then
using a virtual printer driver. So, I have to temporarily switch to
that printer to convert a document, then revert back to what it was.
It's not only for my app, so NSPrintInfo is of no use in my
situation :-(
For your NSPrintInfo, set NSPrintJobDisposition to NSPrintSaveJob, and
set the NSPrintSavePath or NSPrintJobSavingURL (10.6 or later) to the
location you want to save the print job to. Then you can just run the
print job as usual and it will save the PDF to file.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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:
This email sent to email@hidden