On this page
Guides
Merge Pages
The steps to merge pages are as follows:
- Create a blank PDF document.
- Open the PDF document containing the pages to be merged.
- Select all the pages to be merged and combine them into the same document.
This example shows how to merge pages:
C#
CPDFDocument documentforMerge = CPDFDocument.CreateDocument();
CPDFDocument document1 = CPDFDocument.InitWithFilePath("filePath");
CPDFDocument document2 = CPDFDocument.InitWithFilePath("filePath2");
documentforMerge.ImportPagesAtIndex(document1,"1-10",document.PageCount);
documentforMerge.ImportPagesAtIndex(document2,"1-10",document.PageCount);