PdfForm Class

A form XObject of a document (ISO 32000-2, 8.10): a content stream that can be painted several times, with PdfContentBuilder.DrawForm, or used as a transparency group or the group of a soft mask.

public sealed class PdfForm

Properties

NameDescription
BoundingBoxGets the bounding box of the form, in its own coordinate space.
DocumentGets the document of the form.
GroupGets the attributes of the transparency group of the form, or null when it is not a group.
ReferenceGets the reference to the form object.
ResourcesGets the resource dictionary of the form.

BoundingBox

PdfForm.cs

Gets the bounding box of the form, in its own coordinate space.

public PdfRectangle BoundingBox { get; }

Property value

PdfRectangle

Document

PdfForm.cs

Gets the document of the form.

public PdfDocument Document { get; }

Property value

PdfDocument

Gets the attributes of the transparency group of the form, or null when it is not a group.

public PdfTransparencyGroup? Group { get; }

Property value

PdfTransparencyGroup?

Reference

PdfForm.cs

Gets the reference to the form object.

public PdfReference Reference { get; }

Property value

PdfReference

Resources

PdfForm.cs

Gets the resource dictionary of the form.

public PdfDictionary Resources { get; }

Property value

PdfDictionary

Methods

NameDescription
CreateContentBuilder()Creates a builder that appends to the content of the form.

CreateContentBuilder()

PdfForm.cs

Creates a builder that appends to the content of the form.

public PdfContentBuilder CreateContentBuilder()

Returns

PdfContentBuilder The builder.