mindee
Version:
Mindee Client Library for Node.js
10 lines (9 loc) • 398 B
TypeScript
import { PDFPage } from "@cantoo/pdf-lib";
import { Polygon } from "../../geometry";
/**
* Extracts elements from a page based off of a list of bounding boxes.
*
* @param pdfPage PDF Page to extract from.
* @param polygons List of coordinates to pull the elements from.
*/
export declare function extractFromPage(pdfPage: PDFPage, polygons: Polygon[]): Promise<Uint8Array<ArrayBufferLike>[]>;