readPdfMetadata function

BookMetadata readPdfMetadata(
  1. Uint8List bytes, {
  2. String password = '',
})

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