public class PDXObject extends Object implements COSObjectable
| Modifier | Constructor and Description |
|---|---|
protected |
PDXObject(COSStream stream,
COSName subtype)
Creates a new XObject from the given stream and subtype.
|
protected |
PDXObject(PDDocument document,
COSName subtype)
Creates a new XObject of the given subtype for writing.
|
protected |
PDXObject(PDStream stream,
COSName subtype)
Creates a new XObject from the given stream and subtype.
|
| Modifier and Type | Method and Description |
|---|---|
static PDXObject |
createXObject(COSBase base,
PDResources resources)
Creates a new XObject instance of the appropriate type for the COS stream.
|
COSStream |
getCOSObject()
Returns the stream.
|
PDStream |
getStream()
Returns the stream.
|
protected PDXObject(COSStream stream, COSName subtype)
stream - The stream to read.subtype - the subtype to be used for this XObjectprotected PDXObject(PDStream stream, COSName subtype)
stream - The stream to read.subtype - the subtype to be used for this XObjectprotected PDXObject(PDDocument document, COSName subtype)
document - The document in which to create the XObject.subtype - The subtype of the new XObject.public static PDXObject createXObject(COSBase base, PDResources resources) throws IOException
base - The stream which is wrapped by this XObject.resources - the resources of this XObjectIOException - if there is an error creating the XObject.public final COSStream getCOSObject()
getCOSObject in interface COSObjectablepublic final PDStream getStream()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.