XForm

Overview

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

Represents a Form XObject (reusable content stream with its own resources).

This class provides 5 methods for working with XForm objects in .NET programs. Available methods include: CreateNewForm, Dispose, FreeMemory, GetResources. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: BBox, Contents, DecodedBytes, IT, Matrix, Name, and 4 more.

Properties

NameTypeAccessDescription
Namestring?Read/WriteThe name of this XForm in the page’s XObject resources dict.
ContentsOperatorCollectionReadThe Form XObject’s content stream as a typed operator collection.
DecodedBytesbyte[]ReadThe raw decoded content bytes of this XForm.
BBoxRectangle?Read/WriteThe bounding box of this XForm.
RectangleRectangleReadAlias for BBox; both names are exposed.
SubtypestringReadThe XObject Subtype (always “Form” for XForm instances).
MatrixMatrixRead/WriteThe Form’s /Matrix entry (the transformation applied when the form is painted).
ITstring?ReadThe Form’s /Intent (IT) entry; null when absent.
OpiOpiReadOpen Prepress Interface (OPI) wrapper.
ResourcesResourcesReadForm XObject resources (fonts / images / nested XObjects) declared on this XForm’s stream dict.

Methods

SignatureDescription
GetResources()Method-style resources accessor.
GetResources(allowCreate: bool)Method-style resources accessor with create-on-demand.
Dispose()Releases resources held by this XForm.
FreeMemory()Free decoded-content cache.
CreateNewForm(source: Page, document: Document)Construct a new XForm from a source page’s content stream and register it on document.

See Also