getDocumentInfo method
Returns document-level properties: PDF file version and file identifiers.
File identifiers (PdfDocumentInfo.permanentId and PdfDocumentInfo.changingId) are raw bytes, typically 16-byte MD5 hashes. Hex-encode them if a string representation is needed:
final info = await doc.getDocumentInfo();
final hex = info.permanentId
?.map((b) => b.toRadixString(16).padLeft(2, '0'))
.join();
Throws StateError if close has already been called.
Implementation
Future<PdfDocumentInfo> getDocumentInfo() => _impl.getDocumentInfo();