Appended operation names to filenames

This commit is contained in:
Saud Fatayerji
2023-11-17 00:45:37 +03:00
parent 544a080db4
commit fa36d5d296
4 changed files with 30 additions and 27 deletions

View File

@@ -14,5 +14,8 @@ export async function removeBlankPages(params: RemoveBlankPagesParamsType) {
const emptyPages = await detectEmptyPages(file, whiteThreashold);
console.debug("Empty Pages: ", emptyPages);
const pagesToKeep = invertSelection(emptyPages, pageCount.getPageCount())
return getPages(file, pagesToKeep);
const newFile = await getPages(file, pagesToKeep);
newFile.filename += "_removedBlanks"
return newFile;
}