mindee
Version:
Mindee Client Library for Node.js
12 lines (11 loc) • 403 B
JavaScript
import { ExtractedPdf } from "../../../pdf/index.js";
/**
* Wrapper class for extracted invoice pages.
*/
export class ExtractedInvoiceSplitterImage extends ExtractedPdf {
constructor(bytes, pageIndices) {
super(Buffer.from(bytes), `invoice_p_${pageIndices[0]}-${pageIndices[1]}.pdf`, pageIndices);
this.pageIdMin = pageIndices[0];
this.pageIdMax = pageIndices[1];
}
}