fromPath static method

Future<PDFDoc> fromPath(
  1. String path, {
  2. String password = "",
})

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);
}