public class PDFPageBand extends PDFPart
Modifier and Type | Class and Description |
---|---|
static class |
PDFPageBand.PartialPrintFeedback
This class provides the feedback on partial print of a PDFPageBandSection.
|
Constructor and Description |
---|
PDFPageBand(PDFPageBandHeaders headers,
boolean portrait,
float leftrightmargin,
float topbottommargin) |
Modifier and Type | Method and Description |
---|---|
float |
getBandLeft()
provides the left coordinates of the page band available for content taking
into account page margin and page band header left size
|
float |
getBandRight()
provides the left coordinates of the page band available for content taking
into account page margin and page band header right size
|
protected int |
getPageNumber()
This method should be called at the end of the layout phase or during the
printing.
|
protected void |
initialize()
This method is called just before the actual printing in order to initialize
widgets that depend from the content of the full document.
|
protected void |
layoutPages(int pagesbefore)
This method is called just after initalize and before print.
|
protected void |
print(org.apache.pdfbox.pdmodel.PDDocument document)
This method actually prints the document.
|
void |
printNewSection(PDFPageBandSection sectiontoprint) |
getParent, setParentPDFDocument
public PDFPageBand(PDFPageBandHeaders headers, boolean portrait, float leftrightmargin, float topbottommargin) throws java.io.IOException
headers
- the header function that will write any header and
footer on the documentportrait
- true if portrait, false if landscape.leftrightmargin
- margin on page at left and right in mmtopbottommargin
- margin on page at top and bottom in mmjava.io.IOException
protected void print(org.apache.pdfbox.pdmodel.PDDocument document) throws java.io.IOException
PDFPart
protected int getPageNumber()
PDFPart
getPageNumber
in class PDFPart
protected void layoutPages(int pagesbefore) throws java.io.IOException
PDFPart
layoutPages
in class PDFPart
pagesbefore
- the number of pages layed-out before.java.io.IOException
public void printNewSection(PDFPageBandSection sectiontoprint) throws java.io.IOException
sectiontoprint
- java.io.IOException
public float getBandLeft()
public float getBandRight()
protected void initialize()
PDFPart
initialize
in class PDFPart