openDocument static method
Enter the local PDF file path, document password (if required), and configuration parameters, and display the PDF document in a new window.
for Samples:
ComPDFKit.openDocument(
'xxx/compdfkit.pdf',
password : '',
configuration:CPDFConfiguration())
Implementation
static void openDocument(String document,
{String? password, CPDFConfiguration? configuration}) async {
await _methodChannel.invokeMethod('open_document', <String, dynamic>{
'document': document,
'password': password,
'configuration': configuration?.toJson()
});
}