Try PoDoFo
http://podofo.sourceforge.net/
You can open both PDFs as PDFMemDocuments with PDFMemDocument.Load( filename ) .
Then find the links to the two pages you want to copy and add to the end of the document using InsertPages or, if necessary, delete all but the last two pages of the original document, then call PDFDocument .
Add and transfer the called document. It is hard to say what would be faster or more stable.
Hope this helps, Troy
source share