|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.xobject.PDXObject
public abstract class PDXObject
The base class for all XObjects in the PDF document.
| Constructor Summary | |
|---|---|
PDXObject(COSStream xobj)
Standard constructor. |
|
PDXObject(PDDocument doc)
Standard constuctor. |
|
PDXObject(PDStream xobj)
Standard constuctor. |
|
| Method Summary | |
|---|---|
void |
clear()
Calling this will release all cached information. |
protected static PDXObject |
commonXObjectCreation(COSBase xobject,
boolean isThumb)
Create the correct xobject from the cos base. |
static PDXObject |
createXObject(COSBase xobject)
Create the correct xobject from the cos base. |
COSBase |
getCOSObject()
Returns the stream. |
COSStream |
getCOSStream()
Returns the stream. |
PDMetadata |
getMetadata()
Get the metadata that is part of the document catalog. |
PDStream |
getPDStream()
Returns the stream. |
int |
getStructParent()
This will get the key of this XObject in the structural parent tree. |
void |
setMetadata(PDMetadata meta)
Set the metadata for this object. |
void |
setStructParent(int structParent)
This will set the key for this XObject in the structural parent tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDXObject(COSStream xobj)
xobj - The XObject dictionary.public PDXObject(PDStream xobj)
xobj - The XObject dictionary.public PDXObject(PDDocument doc)
doc - The doc to store the object contents.| Method Detail |
|---|
public COSBase getCOSObject()
getCOSObject in interface COSObjectablepublic COSStream getCOSStream()
public PDStream getPDStream()
public static PDXObject createXObject(COSBase xobject)
throws IOException
xobject - The cos level xobject to create.
IOException - If there is an error creating the xobject.
protected static PDXObject commonXObjectCreation(COSBase xobject,
boolean isThumb)
xobject - The cos level xobject to create.isThumb - specify if the xobject represent a Thumbnail Image (in this case, the subtype null must be
considered as an Image)
IOException - If there is an error creating the xobject.public PDMetadata getMetadata()
public void setMetadata(PDMetadata meta)
meta - The meta data for this object.public int getStructParent()
public void setStructParent(int structParent)
structParent - The new key for this XObject.public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||