This short tutorial guides how to split PDF document with C# REST API. You will learn how to split PDF file online with C# REST Interface using the .NET cloud SDK. It will explain all the parameters required to customize the splitting process of the PDF.
Prerequisite
- Create an account API credentials
- Download Aspose.PDF Cloud SDK for Dotnet
- Setup C# project with the above SDK
Steps to Split PDF with C# Low Code API
- Configure the PdfApi class object using the client ID and secret
- Upload the source PDF file to the cloud by assigning a name for subsequent reference
- Invoke the PostSplitDocument method to split PDF files by pages within a specified range
- Iterate through the collection of split PDF documents and download each PDF file
- Save each PDF file as a separate file using the unique name assigned by the API
These steps summarize the development of the PDF splitter software with C# .NET-based API. First, load the source PDF file to the cloud to split it page-by-page, and call the PostSplitDocument() method in the PdfApi class to split it. Provide the necessary parameters, such as reference to the uploaded PDF file, format of the file, starting page number, ending page number, and a few optional parameters if required.
Code for Splitting of PDF Online with C# Low Code API
This code demonstrates how an online PDF splitter software with C# REST API works. The API returns a SplitResultResponse object that contains a list of documents with a unique name for each page. You may download all or selected pages based on your requirements.
This article has taught us how to split PDF document online with C# RESTful Service. To merge the PDF files into a single PDF, refer to the following article: Merge PDF with C# REST API.