Package com.datalogics.PDFL
Class PageLabel
java.lang.Object
com.datalogics.PDFL.PageLabel
Describes numbering labels for a range of pages. PageLabel describes how to construct a label string for a range of pages. It contains information on number style, any prefixes, and a starting position within the document.
Note that a single PageLabel describes the label string for several pages all pages up until the first page covered by the next PageLabel, or the end of the document.
Also note that if a Document has any PageLabels, there must be one that starts at page index 0. This will be automatically created if the user does not supply one.
-
Constructor Summary
ConstructorsConstructorDescriptionPageLabel(int start, NumberStyle ns) Convenience constructor creates a range with no prefix starting with number 1.PageLabel(int start, NumberStyle ns, String p, int first) Public constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()intThe end index for the page label rangeintThe first number used in the page label range.The numbering style for the page label rangeThe prefix string for the page label rangeintThe start index for the page label rangevoidsetFirstNumberInRange(int arg0) The first number used in the page label rangevoidsetNumberStyle(NumberStyle arg0) The numbering style for the page label rangevoidThe prefix string for the page label rangevoidsetStartPageIndex(int ndx) The start index for the page label rangetoString()
-
Constructor Details
-
PageLabel
Public constructor- Parameters:
start- Starting page index in the Document for this rangens- Numbering style for this rangep- Prefix string for this rangefirst- First number appearing on a page in this range
-
PageLabel
Convenience constructor creates a range with no prefix starting with number 1.- Parameters:
start- Starting page index in the Document for this rangens- Numbering style for this range
-
-
Method Details
-
delete
public void delete() -
toString
-
getStartPageIndex
public int getStartPageIndex()The start index for the page label range -
setStartPageIndex
public void setStartPageIndex(int ndx) The start index for the page label range -
getEndPageIndex
public int getEndPageIndex()The end index for the page label rangeYou cannot set the end index for a range; you must change the start index for the following range. A value of -1 means the end index for this PageLabel is unknown.
-
getPrefix
The prefix string for the page label range -
setPrefix
The prefix string for the page label range -
getFirstNumberInRange
public int getFirstNumberInRange()The first number used in the page label range. Must be greater than or equal to 1. -
setFirstNumberInRange
public void setFirstNumberInRange(int arg0) The first number used in the page label range -
getNumberStyle
The numbering style for the page label range -
setNumberStyle
The numbering style for the page label range
-