useSdtTagAsFormFieldName property
PdfSaveOptions.useSdtTagAsFormFieldName property
Specifies whether to use SDT control Tag or Id property as a name of form field in PDF.
get useSdtTagAsFormFieldName(): boolean
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 use SDT control Tag or Id property as a name of form field in PDF.
let doc = new aw.Document(base.myDir + "Form fields.docx");
let saveOptions = new aw.Saving.PdfSaveOptions();
saveOptions.preserveFormFields = true;
// 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.
saveOptions.useSdtTagAsFormFieldName = true;
doc.save(base.artifactsDir + "PdfSaveOptions.SdtTagAsFormFieldName.pdf", saveOptions);
See Also
- module Aspose.Words.Saving
- class PdfSaveOptions