saveDocument method

Future<List<int>> saveDocument({
  1. PdfFlattenOption flattenOption = PdfFlattenOption.none,
})

Saves the document and return the saved bytes as future list of int.

  • flattenOptions – optional – Defines the constants that specify the option for flattening form fields.

Implementation

Future<List<int>> saveDocument(
    {PdfFlattenOption flattenOption = PdfFlattenOption.none}) {
  _flattenOption = flattenOption;
  _notifyPropertyChangedListeners(property: 'saveDocument');
  return _savedDocumentBytes;
}