Updated Page Functions

This commit is contained in:
Felix Kaspar
2023-11-14 20:36:27 +01:00
parent 7bf100daff
commit d7feec32dd
6 changed files with 11 additions and 10 deletions

View File

@@ -2,6 +2,7 @@
import { PDFPageProxy } from "pdfjs-dist/types/src/display/api.js";
import * as PDFJS from 'pdfjs-dist';
// TODO: Type Return Value
export async function getImagesOnPage(page: PDFPageProxy) {
const ops = await page.getOperatorList();
const images: any = [];