open static method

Future<UPdfDocument> open({
  1. String? path,
  2. String? url,
  3. Uint8List? bytes,
  4. String? asset,
  5. Object? blob,
  6. Map<String, String>? headers,
  7. String password = "",
})

Implementation

static Future<UPdfDocument> open({String? path, String? url, Uint8List? bytes, String? asset, Object? blob, Map<String, String>? headers, String password = ""}) async {
  final UCachedByteSource source = await UDocSources.open(path: path, url: url, bytes: bytes, asset: asset, blob: blob, headers: headers);
  final String fingerprint = await UDocSources.fingerprint(source);
  final UPdfDocument document = UPdfDocument._(source, fingerprint);
  await document._load(password);
  return document;
}