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

All Implemented Interfaces:

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

The base class for all XObjects in the PDF document.
 public PDXObject(COSStream xobj) 
    Standard constuctor.
    xobj - The XObject dictionary.
 public PDXObject(PDStream xobj) 
    Standard constuctor.
    xobj - The XObject dictionary.
 public PDXObject(PDDocument doc) 
    Standard constuctor.
    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.