Dear All,

when intermediate format is generated, it is possible to influence the
result by optional setting the target output format:

XMLRenderer atrenderer = new XMLRenderer(ua);
atrenderer.mimicRenderer(...);

However, when I use something like this, the result is produced using some
default configuration:
atrenderer.mimicRenderer(ua.getRendererFactory().createRenderer(ua,
"application/pdf"));

Is there any way to override the target renderer configuration?

My idea is to tweak the LayoutEngineTestCase class to be able simulating
outputs for different config files. 
https://github.com/apache/fop/blob/trunk/fop-core/src/test/java/org/apache/f
op/layoutengine/LayoutEngineTestCase.java#L165-L168

Both target renderer and config path would be specified in the test case:
<testcase target-mime="application/pdf"
config-path="test/config/table-border-rendering-mode-overpaint.xconf">

I can parse these values from testDoc, even build the config object, but I
am unable to pass that config properly downstream.

Thanks,

Jan




Reply via email to