[cups.development] Printer Supported and current resolution
Alexander Cohen
naftaly at me.com
Mon May 24 11:07:30 PDT 2010
On May 24, 2010, at 11:30 AM, Michael Sweet wrote:
> On May 24, 2010, at 7:11 AM, Alex Cohen wrote:
>> Hi,
>>
>> I need to dynamically create some images to be sent to a printer. How can i figure out the needed resolution for a specific printer?
>
>
> Will you be generating CUPS raster printer or just sending something through to be converted for whatever format the printer takes?
>
> For a CUPS raster printer, use cupsRasterInterpretPPD:
>
> http://www.cups.org/documentation.php/api-raster.html
>
> For anything else at the application level on Mac OS X, use the PMPrinterGetOutputResolution function.
In the end, i will be generating cups raster files but it all starts with a PDF that i need to render to a bitmap. I need to know what resolution that bitmap needs to be so i can create the buffer correctly.
AC
More information about the cups
mailing list