public class PdfXObject extends PdfObjectWrapper<PdfStream>
PdfFormXObject
, PdfImageXObject
, Serialized Form
Constructor and Description |
---|
PdfXObject()
Deprecated.
|
PdfXObject(PdfStream pdfObject)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
float |
getHeight()
Gets height of XObject.
|
float |
getWidth()
Gets width of XObject.
|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
static PdfXObject |
makeXObject(PdfStream stream)
|
void |
setLayer(IPdfOCG layer)
Sets the layer this XObject belongs to.
|
ensureObjectIsAddedToDocument, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
@Deprecated public PdfXObject()
@Deprecated public PdfXObject(PdfStream pdfObject)
public static PdfXObject makeXObject(PdfStream stream)
stream
- PdfStream
with either PdfName.Form
or PdfName.Image
PdfName.Subtype
PdfFormXObject
or PdfImageXObject
.
public void setLayer(IPdfOCG layer)
layer
- the layer this XObject belongs to.
public float getWidth()
public float getHeight()
protected boolean isWrappedObjectMustBeIndirect()
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfStream>
Copyright © 1998–2016 iText Group NV. All rights reserved.