• 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: Obtaining printer info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining printer info


  • Subject: Re: Obtaining printer info
  • From: Chris Hanson <email@hidden>
  • Date: Thu, 1 Apr 2004 15:42:40 -0600

On Apr 1, 2004, at 12:12 PM, Mark Woollard wrote:
How do I get the printable bounds of a page and the output resolution in dpi for a given printer?

You can use NSPrintInfo to get the imageable bounds of a page for a particular device. Why do you want the output DPI? Unless you absolutely need to do your own rasterization, you should generally work in a resolution-independent coordinate system and let Quartz handle things like scaling for you.

-- Chris


--
Chris Hanson <email@hidden>
http://www.livejournal.com/users/chanson/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Obtaining printer info (From: Mark Woollard <email@hidden>)

  • Prev by Date: Re: returning nil on initialization
  • Next by Date: Re: When do NSImageRep subclasses register themselves?
  • Previous by thread: RE: Obtaining printer info
  • Next by thread: Sending an AppleScript Studio Object a message from Obj-C
  • Index(es):
    • Date
    • Thread