XForm

Overview

XForm is a class in Aspose.Pdf FOSS for Java.

Represents a Form XObject (ISO 32000-1:2008, §8.10).

Properties

NameTypeAccessDescription
nameStringReadReturns the resource name of this form XObject.
bBoxRectangleReadReturns the bounding box (/BBox) of this form XObject.
matrixMatrixReadReturns the transformation matrix (/Matrix).
resourcesResourcesReadReturns the form’s own /Resources dictionary.
contentsOperatorCollectionReadParses the content stream of this form XObject into operators.
cOSStreamCOSStreamReadReturns the underlying COS stream.

Methods

SignatureDescription
XForm(stream: COSStream, name: String, parser: PDFParser)Creates an XForm from a form XObject stream.
getName()StringReturns the resource name of this form XObject.
getBBox()RectangleReturns the bounding box (/BBox) of this form XObject.
getMatrix()MatrixReturns the transformation matrix (/Matrix).
getResources()ResourcesReturns the form’s own /Resources dictionary.
getContents()OperatorCollectionParses 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()COSStreamReturns the underlying COS stream.

See Also