Files to look at:
- Program.cs (VB: Program.vb)
This example shows how to extract a page from one PDF document and insert it to another PDF.
To accomplish this task:
- Create two PdfDocumentProcessor instances;
- Load a source document to the first instance and the target document to the second by calling the PdfDocumentProcessor.LoadDocument overload method;
- Retrieve the page within the source document using the PdfDocument.Pages property. To access the document, use the PdfDocumentProcessor.Document property;
- Insert the extracted page to the page collection of the target document using the Insert method;
- Save the resulting document by calling the PdfDocumentProcessor.SaveDocument overload method.