Operation = ReorderPages.Operation.createNew(),
       pageRanges = new PDFServicesSdk.PageRanges();

 reorderPagesOperation.setInput(PDFServicesSdk.FileRef.createFromLocalFile('~/Documents/reorderPagesOperationInput.pdf',
 	ReorderPages.SupportedSourceFormat.pdf));
 pageRanges.addSinglePage(3);
 pageRanges.addPageRange(1,2);
 reorderPagesOperation.setPagesOrder(pageRanges);

 reorderPagesOperation.execute(executionContext)
     .then(result => result.saveAsFile('reorderPagesOperationOutput.pdf'))
     .cat