Jonathon Coombes wrote:
How can you have formatted background colours for areas such as
paragraphs, sections, tables etc, but turn them off for printing?
In a pinch, you can munge the XML fairly easily.
With direct-formatting, this works for character, paragraph, table and
section backgrounds (and maybe others, that's all I tested):
$ unzip -p st_background.odt content.xml |
sed -e 's!\(<style:[^>]*\)fo:background-color="[^"]*"!\1!g'
>content.xml
That removes all 'fo:background-color="..."' attributes from any
automatic style definition.
You could wrap it all into a print script, something like this:
$ unzip -p st_background.odt content.xml |
sed -e 's!\(<style:[^>]*\)fo:background-color="[^"]*"!\1!g'
>content.xml &&
cp st_background.odt temp_print.odt &&
zip temp_print.odt content.xml &&
ooffice -p temp_print.odt
That's all standard Unix/Linux stuff, but it's all available for Windows
too. Or you can just use a text editor.
<Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]