PdfSaveOptions.RenderChoiceFormFieldBorder

PdfSaveOptions RenderChoiceFormFieldBorder property. Specifies whether to render PDF choice form field border.

PdfSaveOptions.RenderChoiceFormFieldBorder property

Specifies whether to render PDF choice form field border.

public bool RenderChoiceFormFieldBorder { get; set; }

Remarks

PDF choice form fields are used for export of SDT Combo Box Content Control, SDT Drop-Down List Content Control and legacy Drop-Down Form Field when PreserveFormFields option is enabled.

The default value is true.

Examples

Shows how to configure exporting form fields to PDF.

PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.PreserveFormFields = true;
pdfSaveOptions.RenderChoiceFormFieldBorder = true;
pdfSaveOptions.UseSdtTagAsFormFieldName = true;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "PdfSaveOptions.PreserveFormFields.pdf", pdfSaveOptions)
    .Execute();

See Also