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 declares 5 methods for XForm objects in .NET programs. Available methods include: CreateNewForm, Dispose, FreeMemory, GetResources. 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; the public API exposes both names.
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, kept for API compatibility.
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

 English