mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-31 00:08:08 +01:00
Merge branch 'version-2' of https://github.com/Frooodle/Stirling-PDF into version-2
This commit is contained in:
commit
57db105b7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user