Cleared up client and shared modules

This commit is contained in:
Saud Fatayerji
2023-11-10 21:08:07 +03:00
parent 97e4eab7bb
commit 55f55afed2
11 changed files with 203 additions and 168 deletions

View File

@@ -1,7 +1,7 @@
import { PDFDocument } from 'pdf-lib';
import { detectEmptyPages } from "./common/detectEmptyPages.js";
export async function removeBlankPages(snapshot, whiteThreashold) {
export async function removeBlankPages(snapshot: string | ArrayBuffer | Uint8Array, whiteThreashold: number) {
const emptyPages = await detectEmptyPages(snapshot, whiteThreashold);