Package com.evopdf
Class PdfPage
java.lang.Object
com.evopdf.ElementsRenderer
com.evopdf.PdfPage
Represents a PDF document page
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(PageElement pageElement) Add the given PDF element to this PDF pageint
index()
Gets the index of this page in the parent PDF documentboolean
Gets the flag indicating if this page was loaded from another PDF documentmargins()
Gets the page marginsGets the PDF page orientationpageSize()
Gets the size in points of this PDF pageGets the PDF page rotation anglevoid
setShowFooter
(boolean showFooter) Sets the flag indicating if the footer can be displayed on this PDF pagevoid
setShowHeader
(boolean showHeader) Sets the flag indicating if the header can be displayed on this PDF pageboolean
Gets the flag indicating if the footer can be displayed on this PDF pageboolean
Gets the flag indicating if the header can be displayed on this PDF pageMethods inherited from class com.evopdf.ElementsRenderer
parentDocument, setParentDocument
-
Method Details
-
isLoadedPage
public boolean isLoadedPage()Gets the flag indicating if this page was loaded from another PDF document- Returns:
- the flag value
-
index
public int index()Gets the index of this page in the parent PDF document- Returns:
- the index of this page in the parent PDF document
-
pageSize
Gets the size in points of this PDF page- Returns:
- the size in points of this PDF page
-
orientation
Gets the PDF page orientation- Returns:
- the PDF page orientation
-
rotationAngle
Gets the PDF page rotation angle- Returns:
- the PDF page rotation angle
-
margins
Gets the page margins- Returns:
- the page margins
-
showHeader
public boolean showHeader()Gets the flag indicating if the header can be displayed on this PDF page- Returns:
- the flag value
-
setShowHeader
public void setShowHeader(boolean showHeader) Sets the flag indicating if the header can be displayed on this PDF page- Parameters:
showHeader
- the flag value to set
-
addElement
Add the given PDF element to this PDF page- Specified by:
addElement
in classElementsRenderer
- Parameters:
pageElement
- the element to be added to this page
-