PdfSaveOptions.UseSdtTagAsFormFieldName
PdfSaveOptions UseSdtTagAsFormFieldName property. Specifies whether to use SDT control Tag or Id property as a name of form field in PDF.
PdfSaveOptions.UseSdtTagAsFormFieldName property
Specifies whether to use SDT control Tag or Id property as a name of form field in PDF.
public bool UseSdtTagAsFormFieldName { get; set; }
Remarks
The default value is false
.
When set to false
, SDT control Id property is used as a name of form field in PDF.
When set to true
, SDT control Tag property is used as a name of form field in PDF.
If set to true
and Tag is empty, Id property will be used as a form field name.
If set to true
and Tag values are not unique, duplicate Tag values will be altered to build unique PDF form field names.
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
- class PdfSaveOptions
- namespace Wordize.Saving
- assembly Wordize