public class PDXObject extends Object implements COSObjectable
| Modifier | Constructor and Description |
|---|---|
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,
String name,
PDResources resources)
Creates a new XObject instance of the appropriate type for the COS stream.
|
COSBase |
getCOSObject()
Returns the stream.
|
COSStream |
getCOSStream()
Returns the stream.
|
PDStream |
getPDStream()
Returns the stream.
|
protected PDXObject(PDStream stream, COSName subtype)
stream - The stream to read.protected 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, String name, PDResources resources) throws IOException
base - The stream which is wrapped by this XObject.IOException - if there is an error creating the XObject.public final COSBase getCOSObject()
getCOSObject in interface COSObjectablepublic final COSStream getCOSStream()
public final PDStream getPDStream()
Copyright © 2015–2016 The veraPDF Consortium. All rights reserved.