|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.PDPageNode
public class PDPageNode
This represents a page node in a pdf document.
Constructor Summary | |
---|---|
PDPageNode()
Creates a new instance of PDPage. |
|
PDPageNode(COSDictionary pages)
Creates a new instance of PDPage. |
Method Summary | |
---|---|
PDRectangle |
findCropBox()
This will find the CropBox for this page by looking up the hierarchy until it finds them. |
PDRectangle |
findMediaBox()
This will find the MediaBox for this page by looking up the hierarchy until it finds them. |
PDResources |
findResources()
This will find the resources for this page by looking up the hierarchy until it finds them. |
int |
findRotation()
This will find the rotation for this page by looking up the hierarchy until it finds them. |
void |
getAllKids(List result)
This will return all kids of this node as PDPage. |
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
long |
getCount()
This will get the count of descendent page objects. |
PDRectangle |
getCropBox()
This will get the CropBox at this page and not look up the hierarchy. |
COSDictionary |
getDictionary()
This will get the underlying dictionary that this class acts on. |
List |
getKids()
This will return all kids of this node, either PDPageNode or PDPage. |
PDRectangle |
getMediaBox()
This will get the MediaBox at this page and not look up the hierarchy. |
PDPageNode |
getParent()
This is the parent page node. |
PDResources |
getResources()
This will get the resources at this page node and not look up the hierarchy. |
Integer |
getRotation()
A value representing the rotation. |
void |
setCropBox(PDRectangle cropBox)
This will set the CropBox for this page. |
void |
setMediaBox(PDRectangle mediaBox)
This will set the mediaBox for this page. |
void |
setParent(PDPageNode parent)
This will set the parent of this page. |
void |
setResources(PDResources resources)
This will set the resources for this page. |
void |
setRotation(int rotation)
This will set the rotation for this page. |
long |
updateCount()
This will update the count attribute of the page node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDPageNode()
public PDPageNode(COSDictionary pages)
pages
- The dictionary pages.Method Detail |
---|
public long updateCount()
public long getCount()
public COSDictionary getDictionary()
public PDPageNode getParent()
public void setParent(PDPageNode parent)
parent
- The parent to this page node.public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public List getKids()
public void getAllKids(List result)
result
- All direct and indirect descendents of this node are added to this list.public PDResources getResources()
public PDResources findResources()
public void setResources(PDResources resources)
resources
- The new resources for this page.public PDRectangle getMediaBox()
public PDRectangle findMediaBox()
public void setMediaBox(PDRectangle mediaBox)
mediaBox
- The new mediaBox for this page.public PDRectangle getCropBox()
public PDRectangle findCropBox()
public void setCropBox(PDRectangle cropBox)
cropBox
- The new CropBox for this page.public Integer getRotation()
public int findRotation()
public void setRotation(int rotation)
rotation
- The new rotation for this page.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |