mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-01-05 00:06:24 +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> {
|
async function areImagesBlank(page: PDFPageProxy, threshold: number): Promise<boolean> {
|
||||||
const images = await getImagesOnPage(page);
|
const images = await getImagesOnPage(page);
|
||||||
for (const image of images) {
|
for (const image of images) {
|
||||||
if(!await isImageBlank(image, threshold))
|
if(!await isImageBlank(image as any, threshold))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user