Skip navigation.
 
mlRe: Printing issues
FROM : Frank Fenn
DATE : Fri Apr 22 08:49:41 2005

Hi Andrew,

> Second, I also hand coded the paper size, because I can't figure out
> how to determine the available paper sizes for a particular printer. 
> Is there a way to do this?


NSPrinter

pageSizeForPaper:

- (NSSize)pageSizeForPaper:(NSString *)paperName
Returns the size of the page for the paper type paperName. Possible
values for paperName are contained in the printer’s PPD file. Typical
values are Letter and Legal. Returns a zero size if paperName is not
recognized, or its entry in the PPD cannot be parsed.

Sincerely,
Frank Fenn

--

Bright Light Software - http://www.brightlightsoftware.com

Related mailsAuthorDate
mlPrinting issues Andrew Kinnie Apr 20, 20:45
mlRe: Printing issues Frank Fenn Apr 22, 08:49
mlRe: Printing issues Andrew Kinnie Apr 22, 12:42
mlRe: Printing issues billmonk Apr 23, 03:16
mlRe: Printing issues Dave Camp Apr 25, 17:55