This short tutorial guides how to append PDF with C# REST API. You will learn to automatically append PDF online with C# Low Code API using the .NET-based Cloud SDK. It will assist you to append a complete PDF or the selected range of pages only.
Prerequisite
- Create an account API credentials
- Download Aspose.PDF Cloud SDK for Dotnet
- Setup C# project with the above SDK for appending a PDF to another PDF file
Steps to Append PDF Documents with C# Low Code API
- Configure the client ID and secret in the PdfApi for appending the PDF
- Load the target PDF file and another PDF file that you want to append
- Call the PostAppendDocument() method to append the PDF file to the target PDF file
- Provide the start and end page number of the PDF file for appending
- Download the target PDF file with an appended PDF file and save it on the disk
These steps summarize how to append PDF files with C# REST Interface. Load the PDF files where one PDF file will be appended to the other PDF file and define the parameters for appending the file. Finally, call the PostAppendDocument() method to append the file and save the output on the disk.
Code to Append PDF to PDF with C# REST API
This code has taught us how to append PDFs together with C# .NET-based API. First, the parameter in the PostAppendDocument() method takes the input PDF file to which the PDF file defined by the second argument will be appended. If you do not set the start and end page or set both the values to 0, it will append the complete PDF file.
This article has taught us how to append two PDFs with C# RESTful Service. If you want to split a PDF file, refer to the following article: Split PDF Document with C# REST API.