# PdfFormFillerOptions

Options used when updating or flattening parsed AcroForm fields.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfFormFillerOptions.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L10)

**Implements**

`IPdfOperationCancellation`

**Modifiers**

sealed

Options used when updating or flattening parsed AcroForm fields.

## Inheritance

- object
- PdfFormFillerOptions

## Usage

Explore 13 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.

### Returned or exposed by 7

- Method [PdfFormFillerOptions.Clone](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-clone)
- Method [PdfFormFillerOptions.ReportDiagnosticsTo](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-reportdiagnosticsto-officeimo-pdf-pdfconversionreport-string)
- Method [PdfFormFillerOptions.UseAppearanceFont](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-useappearancefont-string-byte)
- Method [PdfFormFillerOptions.UseAppearanceFontFallbacks](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-useappearancefontfallbacks-officeimo-pdf-pdfembeddedfontfallbackset)
- Method [PdfFormFillerOptions.UseAppearanceFontFamily](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-useappearancefontfamily-officeimo-pdf-pdfembeddedfontfamily)
- Method [PdfFormFillerOptions.UseAppearanceFontFile](/api/pdf/officeimo-pdf-pdfformfilleroptions/#method-useappearancefontfile-string-string)
- Property [PdfInteractiveContentFlattenOptions.FormOptions](/api/pdf/officeimo-pdf-pdfinteractivecontentflattenoptions/#property-formoptions)

### Accepted by parameters 6

- Method [PdfDocumentForms.Edit](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-edit-action-officeimo-pdf-pdfacroformeditsession-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken) parameter `appearanceOptions`
- Method [PdfDocumentForms.Fill](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-fill-collections-generic-ireadonlydictionary-system-string-system-string-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken) parameter `formOptions`
- Method [PdfDocumentForms.FillAndFlatten](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-fillandflatten-collections-generic-ireadonlydictionary-system-string-system-string-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken) parameter `formOptions`
- Method [PdfDocumentForms.Flatten](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-flatten-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken) parameter `formOptions`
- Method [PdfDocumentForms.ImportData](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-importdata-officeimo-pdf-pdfformdataset-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken) parameter `options`
- Method [PdfDocumentForms.ImportXfdf](/api/pdf/officeimo-pdf-pdfdocumentforms/#method-importxfdf-string-officeimo-pdf-pdfformfilleroptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public PdfFormFillerOptions()` [#](#constructor-ctor)

[PdfFormFillerOptions.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L10)

## Methods

`public PdfFormFillerOptions Clone()` [#](#method-clone)

[PdfFormFillerOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L22)

Copies these settings with independent appearance-font configuration.

Returns

`PdfFormFillerOptions`

`public PdfFormFillerOptions ReportDiagnosticsTo(PdfConversionReport report, string converter = "OfficeIMO.Pdf")` [#](#method-reportdiagnosticsto-officeimo-pdf-pdfconversionreport-string)

[PdfFormFillerOptions.cs:125](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L125)

Records structured text diagnostics encountered while synthesizing form appearances.

Parameters

**report OfficeIMO.Pdf.PdfConversionReport required**

Mutable conversion report that receives missing-glyph, shaping, and embedded appearance-font diagnostics.

**converter string = "OfficeIMO.Pdf" optional**

Converter or adapter name to place on recorded warnings.

Returns

`PdfFormFillerOptions` The current options instance for fluent configuration.

`public PdfFormFillerOptions UseAppearanceFont(string familyName, byte[] regular)` [#](#method-useappearancefont-string-byte)

[PdfFormFillerOptions.cs:138](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L138)

Registers a single regular TrueType or OpenType/CFF font face for synthesized text appearances.

Parameters

**familyName string required**

PDF font family name to expose in synthesized resources.

**regular byte[] required**

Regular TrueType or OpenType/CFF font bytes.

Returns

`PdfFormFillerOptions` The current options instance for fluent configuration.

`public PdfFormFillerOptions UseAppearanceFontFallbacks(PdfEmbeddedFontFallbackSet fallbackSet)` [#](#method-useappearancefontfallbacks-officeimo-pdf-pdfembeddedfontfallbackset)

[PdfFormFillerOptions.cs:112](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L112)

Registers prioritized fallback fonts for synthesized text appearances.

Parameters

**fallbackSet OfficeIMO.Pdf.PdfEmbeddedFontFallbackSet required**

Fallback set used when the preferred appearance font cannot cover the field value.

Returns

`PdfFormFillerOptions` The current options instance for fluent configuration.

`public PdfFormFillerOptions UseAppearanceFontFamily(PdfEmbeddedFontFamily fontFamily)` [#](#method-useappearancefontfamily-officeimo-pdf-pdfembeddedfontfamily)

[PdfFormFillerOptions.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L101)

Registers a TrueType font family for synthesized text appearances.

Parameters

**fontFamily OfficeIMO.Pdf.PdfEmbeddedFontFamily required**

Font family to embed into synthesized appearance streams.

Returns

`PdfFormFillerOptions` The current options instance for fluent configuration.

`public PdfFormFillerOptions UseAppearanceFontFile(string familyName, string regularPath)` [#](#method-useappearancefontfile-string-string)

[PdfFormFillerOptions.cs:149](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L149)

Registers a single regular TrueType or OpenType/CFF font file for synthesized text appearances.

Parameters

**familyName string required**

PDF font family name to expose in synthesized resources.

**regularPath string required**

Path to a regular TrueType or OpenType/CFF font file.

Returns

`PdfFormFillerOptions` The current options instance for fluent configuration.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int MaxXfdfDocumentCharacters { get; set; }` [#](#property-maxxfdfdocumentcharacters)

[PdfFormFillerOptions.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L29)

Maximum XFDF source length accepted before XML materialization.

`public int MaxXfdfFields { get; set; }` [#](#property-maxxfdffields)

[PdfFormFillerOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L32)

Maximum number of fields accepted from one XFDF document.

`public int MaxXfdfValueCharacters { get; set; }` [#](#property-maxxfdfvaluecharacters)

[PdfFormFillerOptions.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L35)

Maximum aggregate length of values accepted from one XFDF document.

`public bool KeepNeedAppearances { get; set; }` [#](#property-keepneedappearances)

[PdfFormFillerOptions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L41)

When true, keeps the AcroForm /NeedAppearances flag set after filling fields for legacy viewers that ignore normal appearance streams.

`public PdfEmbeddedFontFamily? AppearanceFontFamily { get; set; }` [#](#property-appearancefontfamily)

[PdfFormFillerOptions.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L47)

Optional TrueType font family used to synthesize embedded Unicode text appearances when a parsed PDF does not already provide a reusable embedded appearance font.

`public PdfEmbeddedFontFallbackSet? AppearanceFontFallbacks { get; set; }` [#](#property-appearancefontfallbacks)

[PdfFormFillerOptions.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Manipulation/PdfFormFillerOptions.cs#L55)

Optional prioritized fallback set used to synthesize embedded Unicode text appearances when the preferred appearance font cannot cover the field value.

<!-- PowerForge markdown artifact sha256:6570CC3FF51DF7197AE09FF0D08444D662F4FE4A4A872A8C88D9CDEFF6DA4288 -->
