[cups.general] CUPS without raster filter

Michael R Sweet msweet at apple.com
Wed Aug 20 09:37:16 PDT 2008


shermin wrote:
> Hi,
> My printer is a non postscript printer.When i tried to print one .png file ,i am getting in the error log
> envp[21]="CONTENT_TYPE=application/postscript"
> envp[24]="FINAL_CONTENT_TYPE=application/vnd.cups-raster"
> Started filter /usr/lib/cups/filter/pstops
> Started filter /usr/lib/cups/filter/pstoraster
> Started backend /usr/lib/cups/backend/card
> 
> Number of bytes read is 8192
> 
> I am trying to send  the cmd in backend(using libusb) without any raster filter.
> Whatever pages(even testpage) i will try to print ,no.of bytes is always 8192 .print_fd always contain the same num of bytes.?what could be the reason??

Are you using cupsRasterOpen, cupsRasterReadHeader, and
cupsRasterReadPixels to read the raster data from "print_fd"?

The original code read print data into a 8192 byte buffer, so you
are probably just seeing the first buffer of raster data.  Instead
of reading the data with read(), you must use the cupsRaster
functions.

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list