Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfFormDataSet

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Dependency-free AcroForm data set with typed and XFDF interchange.

Inheritance

  • object
  • PdfFormDataSet

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public PdfFormDataSet(IEnumerable<PdfFormDataField> fields) #

Creates a unique-name data set.

Parameters

fields System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfFormDataField> required

Methods

public static PdfFormDataSet ParseXfdf(string xfdf, int maxFields = 100000, int maxValueCharacters = 4000000, int maxDocumentCharacters = 8000000) #

Parses bounded, DTD-free XFDF field data.

Parameters

xfdf string required
maxFields int = 100000 optional
maxValueCharacters int = 4000000 optional
maxDocumentCharacters int = 8000000 optional
public static PdfFormDataSet ParseXfdfBytes(byte[] xfdf, int maxFields = 100000, int maxValueCharacters = 4000000, int maxDocumentCharacters = 8000000, int maxDocumentBytes = 32000004) #

Parses encoded XFDF using its BOM or XML declaration within the shared document limits.

Parameters

xfdf byte[] required
maxFields int = 100000 optional
maxValueCharacters int = 4000000 optional
maxDocumentCharacters int = 8000000 optional
maxDocumentBytes int = 32000004 optional
public IReadOnlyDictionary<string, PdfFormFieldValue> ToFieldValues() #

Converts values to the shared form-filler contract.

Returns

IReadOnlyDictionary<string, PdfFormFieldValue>
public string ToXfdf() #

Serializes the data set as XFDF 1.0 XML.

Returns

string

Properties

public IReadOnlyList<PdfFormDataField> Fields { get; } #

Data fields in deterministic source order.

Fields

public const int DefaultMaxXfdfDocumentCharacters #

Default maximum XFDF source length accepted before XML materialization.

Value: 8000000
public const int DefaultMaxXfdfDocumentBytes #

Maximum encoded XFDF bytes accepted before parsing, including an optional BOM.

Value: 32000004
public const int DefaultMaxXfdfFields #

Default maximum number of XFDF fields.

Value: 100000
public const int DefaultMaxXfdfValueCharacters #

Default maximum aggregate XFDF value length.

Value: 4000000