diff --git a/shared-operations/src/functions/common/detectEmptyPages.ts b/shared-operations/src/functions/common/detectEmptyPages.ts index 8ab6fdbc..73284c68 100644 --- a/shared-operations/src/functions/common/detectEmptyPages.ts +++ b/shared-operations/src/functions/common/detectEmptyPages.ts @@ -37,7 +37,7 @@ async function hasText(page: PDFPageProxy): Promise { async function areImagesBlank(page: PDFPageProxy, threshold: number): Promise { 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;