We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is there any Aspose API to reorder PDF pages

Hi Aspose team,

I would like to know if there is any class in Aspose for re-ordering of sections in existing Pdf document?
For example, we want to change page 2 to page 1 and page 1 to page 2

FYI, I noticed other users reported it several years agao. Reorder of sections in pdf



Thanks for contacting support.

The referenced post was about sections in PDF and user wanted to reorganize paragraphs of PDF Pages within PDF. As per our understandings, you want to re-order pages i.e. change the order of entire page in a PDF document. In order to achieve that, you may use following code snippet and in case you have any other requirements, please feel free to let us know.

Document doc = new Document(dataDir + "input.pdf");
Document finalDoc = new Document();
finalDoc.Save(dataDir + "output.pdf");