libgnomeprint and filters

Lutz Müller <[email protected]> Sat, 30 Jul 2005 22:54:39 +0200
Newsgroups gmane.comp.gnome.print
Message-ID <1122756879.4938.5.camel@localhost>
Hello!

I've updated my patch (proposed the first time 3 years ago) that adds
filters to libgnomeprint:=20
- http://www.topfrose.de/filter.diff (modifications)
- http://www.topfrose.de/filters.tar.gz (new files)

For example, applying the filter

GnomePrintFilterDraft translate_x=3D200 translate_y=3D100 scale=3D10 rota=
te=3D60
text=3D"Confidential" opacity=3D0.2

to a print job will print the word "Confidential" across each page.
Another example:=20

GnomePrintFilterZoom zoom=3D0.5 [
 { GnomePrintFilterSelect                           first=3D2 skip=3D3 }
 { GnomePrintFilterSelect transform=3D1,0,0,1,0,420           skip=3D3 }
 { GnomePrintFilterSelect transform=3D1,0,0,1,296,420 first=3D1 skip=3D3 =
}
 { GnomePrintFilterSelect transform=3D1,0,0,1,296,0   first=3D3 skip=3D3 =
} ] !
GnomePrintFilterSelect collect=3Dtrue first=3D0 skip=3D3

This filter will print 4 pages onto 1 page. There are many uses for
filters: Print only black/white, add a letterhead or logo, enlarge 1
page onto 16 (-> poster for people that don't have A0 printers like me),
print only even pages...

For testing, run "tests/test-filter 3". You'll get a
file o.ps illustrating the first example above. Or run it with the
parameter 1 (-> only even pages). Or run "tests/test-filter
GnomePrintFilterZoom zoom=3D0.5".

I am convinced that filters will be really useful. Any comments? I'd
like to get this into CVS in order to be able to provide additional
features in the GUI like printing only even/odd pages or reordering
pages automatically for a folded leaflet.

Thank you for any feedback.

Regards
--=20
Lutz M=FCller <[email protected]>