save method

Future<bool> save({
  1. bool saveIncremental = true,
  2. bool fontSubSet = true,
})

Save document

  • saveIncremental Whether to perform an incremental save. Default is true.Only supported on Android Platform.
  • fontSubSet Whether to embed the font subset when saving the PDF. This will affect how text appears in other PDF software. This is a time-consuming operation.

example:

bool result = await _controller.save(saveIncremental: true, fontSubSet: true);

Return value: true if the save is successful, false if the save fails.

Implementation

Future<bool> save(
    {bool saveIncremental = true, bool fontSubSet = true}) async {
  return await _channel.invokeMethod('save',
      {'save_incremental': saveIncremental, 'font_sub_set': fontSubSet});
}