Page 1 of 1

FOP generates errors for background-color

Posted: Tue Jun 20, 2017 1:39 am
by bburns
I'm trying to set some background colors, and FOP is generating errors. It doesn't matter if I use valid color names or valid HEX values, I get this error:

[fop] [ERROR] Invalid property value encountered in background-color="": org.apache.fop.fo.expr.PropertyException: file:/C:/dita-demo-content-collection-master/Thunderbird/temp/custpdf/topic.fo:21:-1: No conversion defined ; property:'background-color' (See position 21:-1)

The output still generates, but it sure creates a lot of garbage to go through if I need to debug a real issue. Is this a known issue?

Re: FOP generates errors for background-color

Posted: Tue Jun 20, 2017 8:26 am
by Radu
Dear Bill,

We are not familiar with how your PDF customization looks like.
Maybe you could set the parameter "clean.temp=no" and after publishing open the XSL-FO file from the transformation temporary files folder (probably in your case /C:/dita-demo-content-collection-master/Thunderbird/temp/custpdf/topic.fo), format and indent it in Oxygen (using the toolbar action) and then search for background-color="". Then look and try to find out what parts of your XSLT customization generated that empty color.

Regards,
Radu

Re: FOP generates errors for background-color

Posted: Tue Jun 20, 2017 5:34 pm
by bburns
Did this, but I was looking at the wrong instances (which were not problematic). I managed to find the real problem elsewhere. Thanks.