readPdfMetadata function
Reads only the metadata of a PDF document from bytes, opening
encrypted documents with password.
Implementation
BookMetadata readPdfMetadata(final Uint8List bytes, {final String password = ''}) {
return PdfMetadataReader.read(PdfDocument.parse(MemoryPdfByteSource(bytes), password: password));
}