Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.graphics.xobject » [javadoc | source]
org.apache.pdfbox.pdmodel.graphics.xobject
abstract public class: PDXObject [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject

All Implemented Interfaces:
    COSObjectable

Direct Known Subclasses:
    PDPixelMap, PDXObjectForm, PDJpeg, PDCcitt, PDXObjectImage

The base class for all XObjects in the PDF document.
Constructor:
 public PDXObject(COSStream xobj) 
    Standard constuctor.
    Parameters:
    xobj - The XObject dictionary.
 public PDXObject(PDStream xobj) 
    Standard constuctor.
    Parameters:
    xobj - The XObject dictionary.
 public PDXObject(PDDocument doc) 
    Standard constuctor.
    Parameters:
    doc - The doc to store the object contents.
Method from org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject Summary:
createXObject,   getCOSObject,   getCOSStream,   getMetadata,   getPDStream,   setMetadata
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject Detail:
 public static PDXObject createXObject(COSBase xobject) throws IOException 
    Create the correct xobject from the cos base.
 public COSBase getCOSObject() 
    Returns the stream. {@inheritDoc}
 public COSStream getCOSStream() 
    Returns the stream.
 public PDMetadata getMetadata() 
    Get the metadata that is part of the document catalog. This will return null if there is no meta data for this object.
 public PDStream getPDStream() 
    Returns the stream.
 public  void setMetadata(PDMetadata meta) 
    Set the metadata for this object. This can be null.