Back to Devexpress

PdfExportOptions.ExportEditingFieldsToAcroForms Property

corelibraries-devexpress-dot-xtraprinting-dot-pdfexportoptions-562b4170.md

latest4.6 KB
Original Source

PdfExportOptions.ExportEditingFieldsToAcroForms Property

Specifies whether to convert editable fields to AcroForms fields on PDF export.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(false)]
public bool ExportEditingFieldsToAcroForms { get; set; }
vb
<DefaultValue(False)>
Public Property ExportEditingFieldsToAcroForms As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true , to export editable fields to PDF AcroForms fields; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ExportEditingFieldsToAcroForms
Cross-Platform Class LibraryExportOptions

.Pdf .ExportEditingFieldsToAcroForms

| | WinForms Controls | DiagramOptionsExport |

.PdfExportOptions .ExportEditingFieldsToAcroForms

| | WPF Controls | DiagramControl |

.PdfExportOptions .ExportEditingFieldsToAcroForms

|

Remarks

When you export a document to PDF, enable the ExportEditingFieldsToAcroForms property to generate a fillable PDF form (AcroForms). The fields that you make editable in Print Preview remain fillable in the resulting PDF document.

Limitations

The following limitations apply when you export editable fields to PDF AcroForms:

  • Text Fields

  • Character Comb Fields

  • Check Boxes

  • Image Fields

  • Drop-Down Lists

Editable fields are not exported to PDF in the PDF/A-1b compatibility mode.

When you export editable text fields to PDF, fonts that are used to populate these fields are selected according to PDF export settings. However, non-embedded fonts are always used to populate these fields in a PDF viewer.

AcroForms Field Names

Form field names are generated in the following way:

  • For regular fields, the name pattern is EditingField.ID_#. It consists of three parts: the EditingField.ID property value, an underscore sign, and an automatically incremented zero-based counter. If the EditingField.ID value is not provided, the “ AcroFormField “ literal is used instead.

  • For group fields, the name pattern is RadioGroupAcroFormField_groupName , where RadioGroupAcroFormField is a hard-coded literal and groupName is the CheckEditingField.GroupID property value. For instance, RadioGroupAcroFormField_myGroup.

  • Multi-line Character Comb editors are split into distinct editors that follow the same name conversion.

See Also

Interactive Forms in PDF Documents

Edit Content in Print Preview

Export to PDF

PdfExportOptions Class

PdfExportOptions Members

DevExpress.XtraPrinting Namespace