XForm

Overview

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

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

This class provides 8 methods for working with XForm objects in Java programs. Available methods include: XForm, getBBox, getContents, getMatrix, getName, getPdfStream, getResources, setContents. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: bBox, contents, matrix, name, pdfStream, resources.

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.
pdfStreamPdfStreamReadReturns the underlying PDF stream.

Methods

SignatureDescription
XForm(stream: PdfStream, 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}.
getPdfStream()PdfStreamReturns the underlying PDF stream.

See Also

 English