Class FormContent
A placed instance of a FormXObject in a content stream (spec §8.10).
The form is painted at a specific position and scale via the Do operator.
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class FormContent : VisualContentElement
Constructors
FormContent(FormXObject, PdfMatrix?)
Initializes a form content element.
Declaration
public FormContent(FormXObject form, PdfMatrix? transform = null)
Parameters
| Type | Name | Description |
|---|---|---|
| FormXObject | form | |
| PdfMatrix | transform |
Properties
Bounds
Bounding box of this element in the page's user-space coordinate system (origin at lower-left, y-up, units = points).
Declaration
public override PdfRect Bounds { get; }
Property Value
| Type | Description |
|---|---|
| PdfRect |
Overrides
ElementType
The type of this content element.
Declaration
public override ContentElementType ElementType { get; }
Property Value
| Type | Description |
|---|---|
| ContentElementType |
Overrides
Flatten
Gets or sets whether this form content should be flattened (its contents merged into the parent content stream) during save.
Declaration
public bool Flatten { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Form
Gets the form XObject being placed.
Declaration
public FormXObject Form { get; }
Property Value
| Type | Description |
|---|---|
| FormXObject |
Methods
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |