[publican-list] Profiling fo for color and bw

Jeff Fearn jfearn at redhat.com
Wed Mar 11 21:40:29 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/24/2015 08:30 PM, Sascha Manns wrote:
> Hello list,
> 
> the most time i'm generating documents with colors in fo output. But sometimes i know that the customers would print out the document. So i would like to place in the code a option to use the colored pictures or using
> the black and white pendant instead. Maybe that could be done with a attribute role or so. Maybe anyone has done such thing?

I've never done this so there might be a simpler way, but you could use conditionals for this.

Put two imagedata in place, one with condition="colour", one with condition="greyscale" then set the condition in you publican.cfg.

Cheers, Jeff.

- -- 
Jeff Fearn
Senior Software Engineer
Hosted & Shared Services
Red Hat Asia Pacific Pty Ltd
http://dilbert.com/fast/2004-08-17/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVALZNAAoJELs3R4zxGZvKMPMH/0GfoM+uVQlBhXP4tI47l53A
jQtoRh9yPIM6Vf+snLOuHcOvkW3N9z0Z7pptBne7H4aQySuewKrn09sKSl7u4+I5
nPqn9NXgM+1Xoro3Ou+1vvAaO1UpA1k3wH+9/8QVLvDDDn2jNBsRASDOq9mo0mvq
/MiIwttCN9w/tJNwXe11ya4f5aM9I0tT1ILvRArTsNqCN+qmYy9YzepjVXBH1zfR
vc9BAV1dfIv/67Zg3dy44M652GCr3QM4r/344S8X5we6Etn5JivGPAnXjG3Gt/QW
b/O7NgPzUL0xHReqOJvvI9tI/dGldhkt0RVBqSIfW6gSZfcWeZpiY1Wjv21UVXg=
=Cqv0
-----END PGP SIGNATURE-----




More information about the publican-list mailing list