Browse Source

initial-page-number for page-sequence


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193328 13f79535-47bb-0310-9956-ffa450edef68
tags/pre-columns
arved 24 years ago
parent
commit
022578c15e

+ 1
- 0
src/org/apache/fop/fo/PropertyListBuilder.java View File

@@ -162,6 +162,7 @@ public class PropertyListBuilder {
propertyTable.put("right",Right.maker());
propertyTable.put("top",Top.maker());
propertyTable.put("width",Width.maker());
propertyTable.put("initial-page-number",InitialPageNumber.maker());
}

public Property computeProperty(PropertyList propertyList, String propertyName) {

+ 3
- 0
src/org/apache/fop/fo/pagination/PageSequence.java View File

@@ -105,6 +105,9 @@ public class PageSequence extends FObj {
+ parent.getName());
}
layoutMasterSet = root.getLayoutMasterSet();

InitialPageNumber ipn = (InitialPageNumber) this.properties.get("initial-page-number");
this.currentPageNumber = ipn.getInitialPageNumber() - 1;
}

protected Page makePage(AreaTree areaTree) throws FOPException {

Loading…
Cancel
Save