/** * @description Normalised PDF document metadata (title, author, creator, producer). * Handles both the modern XMP `metadata` API and the legacy `info` dictionary * returned by pdfjs, so callers always receive a consistent shape regardless of * which metadata format the PDF uses. */ export default class Metadata { title?: string; creator?: string; producer?: string; author?: string; constructor(originalMetadata: { metadata?: { get(key: string): string | undefined; }; info?: { Title?: string; Author?: string; Creator?: string; Producer?: string; }; }); }