Package com.helger.pdflayout.render
Class PagePreRenderContext
java.lang.Object
com.helger.pdflayout.render.PagePreRenderContext
This class describes the index of the current page.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionPagePreRenderContext(PLPageSet aPageSet, org.apache.pdfbox.pdmodel.PDDocument aDoc, org.apache.pdfbox.pdmodel.PDPage aPage, int nPageSetIndex, int nPageSetCount, int nPageSetPageIndex, int nPageSetPageCount, int nTotalPageIndex, int nTotalPageCount) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlaceholder(String sKey, int nValue) voidaddPlaceholder(String sKey, String sValue) org.apache.pdfbox.pdmodel.PDDocumentorg.apache.pdfbox.pdmodel.PDPagegetPage()intintintintintintgetPlaceholder(String sKey) intgetPlaceholderAsInt(String sKey, int nDefault) intintinttoString()
-
Constructor Details
-
PagePreRenderContext
public PagePreRenderContext(@Nonnull PLPageSet aPageSet, @Nonnull org.apache.pdfbox.pdmodel.PDDocument aDoc, @Nonnull org.apache.pdfbox.pdmodel.PDPage aPage, @Nonnegative int nPageSetIndex, @Nonnegative int nPageSetCount, @Nonnegative int nPageSetPageIndex, @Nonnegative int nPageSetPageCount, @Nonnegative int nTotalPageIndex, @Nonnegative int nTotalPageCount)
-
-
Method Details
-
getPageSet
- Returns:
- the document
-
getDocument
- Returns:
- the PDFBox document
-
getPage
- Returns:
- the new PDFBox page
-
getPageSetIndex
- Returns:
- The index of the current page set. 0-based. Always ≥ 0.
-
getPageSetNumber
- Returns:
- The number of the current page set. 1-based. Always ≥ 1.
-
getPageSetCount
- Returns:
- The total number of page sets. Always ≥ 1.
-
getPageSetPageIndex
- Returns:
- The index of the page in the current page set. 0-based. Always ≥ 0.
-
getPageSetPageNumber
- Returns:
- The number of the page in the current page set. 1-based. Always ≥ 1.
-
getPageSetPageCount
- Returns:
- The total number of pages in the current page set. Always ≥ 0.
-
getTotalPageIndex
- Returns:
- The index of the page over all page sets. 0-based. Always ≥ 0.
-
getTotalPageNumber
- Returns:
- The number of the page over all page sets. 1-based. Always ≥ 1.
-
getTotalPageCount
- Returns:
- The overall number of pages. Always ≥ 0.
-
getAllPlaceholders
-
getPlaceholder
-
getPlaceholderAsInt
-
addPlaceholder
-
addPlaceholder
-
toString
-