Skip to content

Extract a page from one PDF document and insert it to another document.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/pdf-document-api-copy-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

PDF Document API - Copy Pages from One Document to Another

This example shows how to extract a page from one PDF document and insert it to another PDF. 

Description

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.