Merge branch 'version-2' of https://github.com/Frooodle/Stirling-PDF into version-2

This commit is contained in:
Felix Kaspar 2023-11-16 01:57:27 +01:00
commit 57db105b7e

View File

@ -37,7 +37,7 @@ async function hasText(page: PDFPageProxy): Promise<boolean> {
async function areImagesBlank(page: PDFPageProxy, threshold: number): Promise<boolean> {
const images = await getImagesOnPage(page);
for (const image of images) {
if(!await isImageBlank(image, threshold))
if(!await isImageBlank(image as any, threshold))
return false;
}
return true;