pdf-lite - v1.0.1
    Preparing search index...

    A reader for parsing PDF data into PdfDocument instances. Processes streams of PDF objects and constructs documents from them.

    // Read PDF from file bytes
    const document = await PdfReader.fromBytes(fileBytes)
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    objectStream: Iterable<PdfObject, any, any> | AsyncIterable<PdfObject, any, any>

    The stream of PDF objects to read from

    Methods

    • Creates a PdfDocument directly from a byte stream. Convenience method that creates a reader internally.

      Parameters

      • input: Iterable<ByteArray, any, any> | AsyncIterable<ByteArray, any, any>

        Async or sync iterable of byte arrays

      Returns Promise<PdfDocument>

      A promise that resolves to the parsed PdfDocument