Always rotate portrait page to landscape for rasterfilter
Michael Sweet
mike at easysw.com
Sun Mar 18 21:41:07 PDT 2007
Johan Henselmans wrote:
> ...
> Is there a way (eg a postscript command or an option) to
> automatically rotate the page before it gets to my filter so that I
> would get a 8x3.25 or a 576x234 pagesize to my filter, so that I
> don't have to rethink my filter completely?
No, however you might report this bug to the Apple folks - the
apps should be defaulting to the width and height specified in
the imageable area, not what they think is the correct orientation.
Aside from that, you may just need to include code in your filter to
read the entire page into memory (fortunately your pages aren't that
large) and then step horizontally or vertically as you process each
line.
With CUPS 1.2, you'll also have access to the cupsImage functions
which allow you to manage large images and read rows or columns as
needed.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
More information about the cups-devel
mailing list