rPagesOperation.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('output/reorderPagesOperationOutput.pdf'))
     .catch(err => console.log(err));
</code>
</pre></div>
        
    
</header>

<article>
    

    

    
