saveDocument method
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;
}