prevPageSeqLM.doForcePageCount(pageSequence.getInitialPageNumber());
prevPageSeqLM.finishPageSequence();
prevPageSeqLM = null;
- // recalc pagenumber for the case that a new page is
- // inserted by checkForcePageCount
}
pageSequence.initPageNumber();
//extension attachments from fo:root
*/
public void endDocument() throws SAXException {
+ // finish the last pageSequence
+ if (prevPageSeqLM != null) {
+ prevPageSeqLM.finishPageSequence();
+ prevPageSeqLM = null;
+ }
// process fo:bookmark-tree
BookmarkTree bookmarkTree = rootFObj.getBookmarkTree();
if (bookmarkTree != null) {
<eval expected="41" xpath="//pageSequence[13]/pageViewport[2]"/>
<eval expected="43" xpath="//pageSequence[14]/pageViewport[2]"/>
<eval expected="49" xpath="//pageSequence[17]/pageViewport[3]"/>
+ <!-- formatting results -->
+ <result expected="32" property="pagecount"/>
</checks>
</testcase>