}
if (definition instanceof SimplePageDefinition)
{
final SimplePageDefinition sdef = (SimplePageDefinition) definition;
final int pageCountHorizontal = sdef.getPageCountHorizontal();
final int pageCountVertical = sdef.getPageCountVertical();
final PageFormat pageFormat = sdef.getPageFormat();
final AttributeList attr = new AttributeList();
attr.setAttribute(ExtParserModule.NAMESPACE, "horizontal-span", String.valueOf(pageCountHorizontal));
attr.setAttribute(ExtParserModule.NAMESPACE, "vertical-span", String.valueOf(pageCountVertical));
buildPageFormatProperties(pageFormat, attr);