XForm
Overview
XForm is a class in Aspose.Pdf FOSS for Java.
Represents a Form XObject (ISO 32000-1:2008, §8.10).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Returns the resource name of this form XObject. |
bBox | Rectangle | Read | Returns the bounding box (/BBox) of this form XObject. |
matrix | Matrix | Read | Returns the transformation matrix (/Matrix). |
resources | Resources | Read | Returns the form’s own /Resources dictionary. |
contents | OperatorCollection | Read | Parses the content stream of this form XObject into operators. |
cOSStream | COSStream | Read | Returns the underlying COS stream. |
Methods
| Signature | Description |
|---|---|
XForm(stream: COSStream, name: String, parser: PDFParser) | Creates an XForm from a form XObject stream. |
getName() → String | Returns the resource name of this form XObject. |
getBBox() → Rectangle | Returns the bounding box (/BBox) of this form XObject. |
getMatrix() → Matrix | Returns the transformation matrix (/Matrix). |
getResources() → Resources | Returns the form’s own /Resources dictionary. |
getContents() → OperatorCollection | Parses the content stream of this form XObject into operators. |
setContents(contents: OperatorCollection) | Replaces the content stream of this form XObject with the serialized form |
| of {@code contents}. | |
getCOSStream() → COSStream | Returns the underlying COS stream. |