com.lowagie.text.pdf

Class PdfPSXObject

public class PdfPSXObject extends PdfTemplate

Implements the PostScript XObject.
Constructor Summary
protected PdfPSXObject()
Creates a new instance of PdfPSXObject
PdfPSXObject(PdfWriter wr)
Constructs a PSXObject
Method Summary
PdfContentBytegetDuplicate()
Gets a duplicate of this PdfPSXObject.
PdfStreamgetFormXObject(int compressionLevel)
Gets the stream representing this object.

Constructor Detail

PdfPSXObject

protected PdfPSXObject()
Creates a new instance of PdfPSXObject

PdfPSXObject

public PdfPSXObject(PdfWriter wr)
Constructs a PSXObject

Parameters: wr

Method Detail

getDuplicate

public PdfContentByte getDuplicate()
Gets a duplicate of this PdfPSXObject. All the members are copied by reference but the buffer stays different.

Returns: a copy of this PdfPSXObject

getFormXObject

PdfStream getFormXObject(int compressionLevel)
Gets the stream representing this object.

Parameters: compressionLevel the compressionLevel

Returns: the stream representing this template

Throws: IOException

Since: 2.1.3 (replacing the method without param compressionLevel)