mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02:00 
			
		
		
		
	Fixed variable name
This commit is contained in:
		
							parent
							
								
									8a63ebe6cf
								
							
						
					
					
						commit
						c060b2a4e0
					
				| @ -10,11 +10,12 @@ export type RemoveBlankPagesParamsType = { | |||||||
| } | } | ||||||
| export async function removeBlankPages(params: RemoveBlankPagesParamsType) { | export async function removeBlankPages(params: RemoveBlankPagesParamsType) { | ||||||
|     const { file, whiteThreashold } = params; |     const { file, whiteThreashold } = params; | ||||||
|     const pageCount = await file.pdfLibDocument; |     const pdfDoc = await file.pdfLibDocument; | ||||||
|  |     const pageCount = pdfDoc.getPageCount(); | ||||||
| 
 | 
 | ||||||
|     const emptyPages = await detectEmptyPages(file, whiteThreashold); |     const emptyPages = await detectEmptyPages(file, whiteThreashold); | ||||||
|     console.debug("Empty Pages: ", emptyPages); |     console.debug("Empty Pages: ", emptyPages); | ||||||
|     const pagesToKeep = invertSelection(emptyPages, pageCount.getPageCount()) |     const pagesToKeep = invertSelection(emptyPages, pageCount) | ||||||
| 
 | 
 | ||||||
|     const newFile = await getPages(file, pagesToKeep); |     const newFile = await getPages(file, pagesToKeep); | ||||||
|     newFile.filename += "_removedBlanks" |     newFile.filename += "_removedBlanks" | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user