pdf-parse
    Preparing search index...

    Interface PDFWorker

    PDF.js web worker abstraction that controls the instantiation of PDF documents. Message handlers are used to pass information from the main thread to the worker thread and vice versa. If the creation of a web worker is not possible, a "fake" worker will be used instead.

    The worker initialization parameters.

    interface PDFWorker {
        destroyed: boolean;
        name: any;
        verbosity: number;
        get messageHandler(): MessageHandler;
        get port(): Worker;
        get promise(): Promise<void>;
        destroy(): void;
    }
    Index

    Properties

    destroyed: boolean
    name: any
    verbosity: number

    Accessors

    • get messageHandler(): MessageHandler

      The current MessageHandler-instance.

      Returns MessageHandler

    • get port(): Worker

      The current workerPort, when it exists.

      Returns Worker

    • get promise(): Promise<void>

      Promise for worker initialization completion.

      Returns Promise<void>

    Methods

    • Destroys the worker instance.

      Returns void