# PdfFormXfaHandling

How an append-only form-field revision treats the XFA packet of a hybrid AcroForm/XFA form.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[PdfFormXfaHandling.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfFormXfaHandling.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

How an append-only form-field revision treats the XFA packet of a hybrid AcroForm/XFA form.

## Inheritance

- Enum
- PdfFormXfaHandling

## Usage

Explore 3 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 3

- Field [PdfFormXfaHandling.Preserve](/api/pdf/officeimo-pdf-pdfformxfahandling/#field-preserve)
- Field [PdfFormXfaHandling.Remove](/api/pdf/officeimo-pdf-pdfformxfahandling/#field-remove)
- Property [PdfIncrementalFormFieldUpdateOptions.XfaHandling](/api/pdf/officeimo-pdf-pdfincrementalformfieldupdateoptions/#property-xfahandling)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfFormXfaHandling Preserve` [#](#field-preserve)

[PdfFormXfaHandling.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfFormXfaHandling.cs#L9)

Keep the XFA packet unchanged. AcroForm viewers show the new values; XFA-aware viewers such as Adobe Acrobat may keep showing the XFA data, which the revision does not update.

Value: `0`

`public const PdfFormXfaHandling Remove` [#](#field-remove)

[PdfFormXfaHandling.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Pdf/Manipulation/PdfFormXfaHandling.cs#L16)

Remove /XFA from the AcroForm in the appended revision so XFA-aware viewers can use the AcroForm values. Earlier revisions keep the XFA packet; removal can invalidate Adobe Reader usage rights. Removing XFA from a DocMDP-certified document is refused because it changes the form definition.

Value: `1`

<!-- PowerForge markdown artifact sha256:100F5D6F50564C45C1D8F16B2C7F99C100EAC10B84B0927845BA15E8B17C2DAB -->
