[cups.general] CUPS without raster filter
Michael R Sweet
msweet at apple.com
Thu Aug 21 10:50:27 PDT 2008
shermin wrote:
> Hi,
> I used
> ras = cupsRasterOpen(print_fd, CUPS_RASTER_READ);
> while (cupsRasterReadHeader2(ras, &header))
> {if (cupsRasterReadPixels(ras, rasterData, header.cupsBytesPerLine) < 1).....}
>
> In my case rasterData should contain the data read from print_fd na?.Also since i have to send the cmds using usb_bulk_write with CBW[15-31]contains my cmd for image out.But I am always getting wrong buffer value in my rasterData.
Unless your printer only takes a single line of graphics, you need to
loop on cupsRasterReadPixels to collect the whole page. The
header.cupsHeight value contains the number of lines in the page.
--
______________________________________________________________________
Michael R Sweet Senior Printing System Engineer
More information about the cups
mailing list