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
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 mails | Author | Date |
|---|---|---|
| Andrew Kinnie | Apr 20, 20:45 | |
| Frank Fenn | Apr 22, 08:49 | |
| Andrew Kinnie | Apr 22, 12:42 | |
| billmonk | Apr 23, 03:16 | |
| Dave Camp | Apr 25, 17:55 |






Cocoa mail archive

