importWidgets method

Future<bool> importWidgets(
  1. String xfdfFile
)

Imports the form data from the specified XFDF file into the current PDF document.
xfdfFile The path or URI of the XFDF file to import.

example:

bool importResult = await controller.document.importWidgets('data/your_package_name/files/xxx.xfdf');
// or use Uri on the Android Platform.
const xfdfFile = 'content://media/external/file/1000045118';
const importResult = await controller.document.importWidgets(xfdfFile);

Implementation

Future<bool> importWidgets(String xfdfFile) async {
  return await _channel.invokeMethod('import_widgets', xfdfFile);
}