getMetadata method

Future<PdfMetadata> getMetadata()

Returns the metadata extracted from the PDF Info dictionary.

All fields on PdfMetadata are nullable. A null field means the corresponding entry was not present in the document's Info dictionary — this is distinct from a field that is present but empty.

Throws StateError if close has already been called.

Implementation

Future<PdfMetadata> getMetadata() => _impl.getMetadata();