digester.addCallMethod("*/image/imageSource", "setImageSource", 0);
/* */
digester.addFactoryCreate("*/text", JRPrintTextFactory.class.getName());
digester.addSetNext("*/text", "addElement", JRPrintElement.class.getName());
SetNestedPropertiesRule textRule = new SetNestedPropertiesRule(
new String[]{"textContent", "textTruncateSuffix", "reportElement", "box", "font",
JRXmlConstants.ELEMENT_lineBreakOffsets},
new String[]{"text", "textTruncateSuffix"});
textRule.setTrimData(false);
textRule.setAllowUnknownChildElements(true);
digester.addRule("*/text", textRule);
digester.addRule("*/text/textContent",
new SetPropertiesRule(JRXmlConstants.ATTRIBUTE_truncateIndex, "textTruncateIndex"));