added endpoint: extract-pages. changed indecies to indexes

This commit is contained in:
Saud Fatayerji
2023-11-19 11:38:55 +03:00
parent facf1553ec
commit a7545b017f
4 changed files with 14 additions and 9 deletions

View File

@@ -54,7 +54,7 @@ export async function * traverseOperations(operations: Action[], input: PdfFile[
break;
case "extract":
yield* nToN(input, action, async (input) => {
const newPdf = await Operations.extractPages({file: input, pageIndecies: action.values["pageIndecies"]});
const newPdf = await Operations.extractPages({file: input, pageIndexes: action.values["pageIndexes"]});
return newPdf;
});
break;