document property
The open PDF document and its document-level operations.
Available after onReady is called. Populated by the platform adapter
via its createDocument() factory, which can be overridden to provide
a custom NutrientDocumentInterface implementation.
onControllerReady: (controller) async {
final count = await controller.document.getPageCount();
final json = await controller.document.annotations.getAnnotationsJson(0, 'all');
final bookmarks = await controller.document.bookmarks.getBookmarks();
}
Implementation
NutrientDocumentInterface get document;