|
@@ -121,6 +121,7 @@ class _CPDFReaderWidgetControllerExampleState
|
|
|
// String? savePath = await ComPDFKit.createUri('aaa.pdf', childDirectoryName: 'compdfkit');
|
|
|
bool saveResult = await controller.document.saveAs(savePath);
|
|
|
debugPrint('ComPDFKit:saveAs:Result:$saveResult');
|
|
|
+ debugPrint('ComPDFKit:saveAs:Path:$savePath');
|
|
|
break;
|
|
|
case 'setScale':
|
|
|
controller.setScale(1.5);
|
|
@@ -176,27 +177,6 @@ class _CPDFReaderWidgetControllerExampleState
|
|
|
document.open(path, "");
|
|
|
}
|
|
|
break;
|
|
|
- case "importAnnotations":
|
|
|
- // android assets:
|
|
|
- // String? xfdfFile = "file:///android_asset/test.xfdf";
|
|
|
-
|
|
|
- // android file path sample:
|
|
|
- File xfdfFile = await extractAsset(context, 'pdfs/test.xfdf');
|
|
|
-
|
|
|
- // android Uri:
|
|
|
- //String xfdfFile = "content://xxx";
|
|
|
-
|
|
|
- bool result =
|
|
|
- await controller.document.importAnnotations(xfdfFile.path);
|
|
|
- debugPrint('ComPDFKit:Document: importAnnotations:$result');
|
|
|
- break;
|
|
|
- case "exportAnnotations":
|
|
|
- String xfdfPath = await controller.document.exportAnnotations();
|
|
|
- debugPrint('ComPDFKit:Document: exportAnnotations:$xfdfPath');
|
|
|
- break;
|
|
|
- case "removeAllAnnotations":
|
|
|
- await controller.document.removeAllAnnotations();
|
|
|
- break;
|
|
|
case "removeSignFileList":
|
|
|
bool result = await ComPDFKit.removeSignFileList();
|
|
|
debugPrint('ComPDFKit:removeSignFileList:$result');
|
|
@@ -260,9 +240,6 @@ var actions = [
|
|
|
'setDisplayPageIndex',
|
|
|
'isChanged',
|
|
|
'documentInfo',
|
|
|
- 'importAnnotations',
|
|
|
- 'exportAnnotations',
|
|
|
- 'removeAllAnnotations',
|
|
|
'removeSignFileList',
|
|
|
'print'
|
|
|
];
|