Removes all pages from the document except for the pages specified in the pageIndexes array.
pageIndexes
instance.applyOperations([{ type: "keepPages", pageIndexes: [1, 2]}]); Copy
instance.applyOperations([{ type: "keepPages", pageIndexes: [1, 2]}]);
Removes all pages from the document except for the pages specified in the
pageIndexesarray.Example