• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
ContentElement
VisualContentElement
FormContent
Inherited Members
VisualContentElement.Transform
VisualContentElement.Clip
VisualContentElement.Group
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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
ContentElement.Bounds

ElementType

The type of this content element.

Declaration
public override ContentElementType ElementType { get; }
Property Value
Type Description
ContentElementType
Overrides
ContentElement.ElementType

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.

Overrides
object.ToString()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX