[cups.development] rotating CUPS raster images

Michael Sweet mike at easysw.com
Wed Sep 26 02:37:26 PDT 2007


Olaf Meeuwissen wrote:
> Dear all,
> 
> I'm working on a CUPS filter that takes application/vnd.cups-raster as
> its input.  Dependent on print conditions, I need to rotate the image
> 90, 180 or 270 degrees to "work around hardware limitations".
> 
> I've read the CUPS raster API docs (http://localhost:631/help/) but I
> didn't really find what I was looking for.  If somebody could provide
> a cluebat, I'd appreciate it.  Just a pointer to extra documentation
> or some sample code would be fine.
> 
> Note, still has to work with CUPS 1.1.x and later.

You'll have to rotate the image yourself or express the supported
media size in landscape so CUPS rotates it for you.

CUPS will normally handle the usual orientation requests from the
user for you - why/when are you needing to do the rotation yourself?

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups-devel mailing list