• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to switch the default printer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to switch the default printer?
      • From: Laurent Daudelin <email@hidden>
References: 
 >How to switch the default printer? (From: Laurent Daudelin <email@hidden>)
 >Re: How to switch the default printer? (From: Kyle Sluder <email@hidden>)
 >Re: How to switch the default printer? (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Re: How to switch the default printer?
  • Next by Date: Re: language based scaning
  • Previous by thread: Re: How to switch the default printer?
  • Next by thread: Re: How to switch the default printer?
  • Index(es):
    • Date
    • Thread