mindee
    Preparing search index...

    Function extractFromPage

    • Extracts elements from a page based off of a list of bounding boxes.

      Parameters

      • pdfPage: PDFPage

        PDF Page to extract from.

      • polygons: Polygon[]

        List of coordinates to pull the elements from.

      • asImage: boolean = false

        Whether to return the extracted elements as images.

      • Optionalquality: number

        JPEG quality of extracted images, given as number between 0 and 1.

      Returns Promise<Uint8Array<ArrayBufferLike>[]>