pdf-parse
    Preparing search index...

    Interface InfoResult

    Aggregated information about a PDF document returned by getInfo(). The object contains high-level metadata, outline/bookmark structure, per-page extracted hyperlinks and utility helpers for parsing dates.

    interface InfoResult {
        fingerprints?: (string | null)[];
        info?: any;
        metadata?: Metadata;
        outline?: OutlineNode[] | null;
        pages: PageLinkResult[];
        permission?: number[] | null;
        total: number;
        getDateNode(): DateNode;
    }
    Index

    Properties

    fingerprints?: (string | null)[]

    An array of document fingerprint strings provided by PDF.js. Useful for caching, de-duplication or identifying a document across runs.

    info?: any

    The PDF 'Info' dictionary. Typical fields include title, author, subject, Creator, Producer and Creation/Modification dates. The exact structure is determined by the PDF and as returned by PDF.js.

    metadata?: Metadata
    outline?: OutlineNode[] | null

    Optional document outline (bookmarks). When present this is the hierarchical navigation structure which viewers use for quick access.

    pages: PageLinkResult[] = []
    permission?: number[] | null

    Permission flags for the document as returned by PDF.js (or null). These flags indicate capabilities such as printing, copying and other restrictions imposed by the PDF security settings.

    total: number

    Methods

    • Collects dates from different sources (Info dictionary and XMP/XAP metadata) and returns them as a DateNode where available. This helps callers compare and choose the most relevant timestamp (for example a creation date vs XMP date).

      Returns DateNode