Add Pages to PDF via C++
Insert pages to PDF document programmatically using Aspose.PDF for C++ Library
How to Add pages to PDF Using C++
In order to insert page in PDF file, we’ll use Aspose.PDF for C++ API which is a feature-rich, powerful and easy to use document manipulation API for cpp platform. Open NuGet package manager, search for Aspose.PDF and install. You may also use the following command from the Package Manager Console.
Insert Page to PDF via C++
You need Aspose.PDF for C++ to try the code in your environment.
-
Create a Document object with the input PDF file.
-
Call the PageCollection collection’s Insert method with specified index.
-
Save the output PDF using the Save method.