info static method

Future<UDocMetadata?> info({
  1. String? filePath,
  2. Uint8List? bytes,
  3. String? url,
  4. String password = "",
})

Implementation

static Future<UDocMetadata?> info({String? filePath, Uint8List? bytes, String? url, String password = ""}) async {
  try {
    final UPdfDocument document = await UPdfDocument.open(path: filePath, bytes: bytes, url: url, password: password);
    final UDocMetadata metadata = await document.metadata();
    await document.close();
    return metadata;
  } on Object {
    return null;
  }
}