loadText method
Just a helper function to load the text of a page.
Implementation
Future<PdfPageText?> loadText({required int pageNumber}) async {
return await controller?.documentRef.resolveListenable().useDocument(
(document) async {
return await document.pages[pageNumber - 1].loadText();
},
);
}