mappingName property

String get mappingName

Gets or sets the mapping name to be used when exporting interactive form field data from the document.

Implementation

String get mappingName {
  if (_fieldHelper.isLoadedField &&
      (_mappingName == null || _mappingName!.isEmpty)) {
    final IPdfPrimitive? str = PdfFieldHelper.getValue(
        _fieldHelper.dictionary!,
        _fieldHelper.crossTable,
        PdfDictionaryProperties.tm,
        false);
    if (str != null && str is PdfString) {
      _mappingName = str.value;
    }
  }
  return _mappingName!;
}
set mappingName (String value)

Implementation

set mappingName(String value) {
  if (_mappingName != value) {
    _mappingName = value;
    _fieldHelper.dictionary!
        .setString(PdfDictionaryProperties.tm, _mappingName);
  }
  if (_fieldHelper.isLoadedField) {
    _fieldHelper.changed = true;
  }
}