fromPath static method
Creates a PDFDoc
object with a file path.
Optionally, takes a password
for encrypted PDF documents.
Implementation
static Future<PDFDoc> fromPath(String path, {String password = ""}) async {
return await fromFile(File(path), password: password);
}