Skip to content

Commit 727cd1a

Browse files
committed
Add new APIs to import/export Instant JSON
Signed-off-by: Simone Arpe <[email protected]>
1 parent 1ecb936 commit 727cd1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/pspdfkit.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ class Pspdfkit {
4343
static Future<String> getFormFieldValue(String fullyQualifiedName) =>
4444
_channel.invokeMethod('getFormFieldValue', <String, dynamic>{'fullyQualifiedName': fullyQualifiedName});
4545

46+
/// Applies Instant document JSON to the presented document.
47+
static Future<bool> applyInstantJson(String annotationsJson) async =>
48+
_channel.invokeMethod('applyInstantJson', <String, String>{'annotationsJson': annotationsJson});
49+
50+
/// Exports Instant document JSON from the presented document.
51+
static Future<String> exportInstantJson() async => _channel.invokeMethod('exportInstantJson');
52+
4653
/// Saves the document back to its original location if it has been changed.
4754
/// If there were no changes to the document, the document file will not be modified.
4855
static Future<bool> save() => _channel.invokeMethod('save');

0 commit comments

Comments
 (0)