Reorder PDF Pages with C# REST API

This short tutorial guides how to reorder PDF pages with C# REST API. You will learn to set the environment, get a list of steps, and automatically rearrange pages in PDF with C# Low Code API using the .NET-based Cloud SDK. It explains the complete process by shifting the page from one position to the other and saving the output on the disk.

Prerequisite

Steps to Arrange PDF Pages with C# REST Interface

  1. Configure the PdfApi class object by setting the API key and application SID
  2. Upload the target PDF file from the memory stream to the Cloud storage
  3. Call the PostMovePage() method by providing the target PDF file, page number, and new position
  4. Download the updated PDF file from the Cloud after a successful API response

These steps define the process to rearrange pages of PDF with C# REST Interface. Load the target PDF file and call the PostMovePage() method by providing the file name, page index, and new position. Save the output PDF file on the disk by fetching it from the Cloud storage.

Code to Reorder Pages of PDF with C# .NET-based API

The above code demonstrates how to shuffle pages in PDF with C# Low Code API. You may repeat the process to rearrange multiple pages by providing the updated page index every time. This code does not require any other third-party tool or software.

This article has assisted us to organize PDF pages with C# REST Interface. If you want to delete PDF pages, refer to the following article: Delete pages from PDF document with C# REST API.

 English