Created
November 9, 2020 02:37
-
-
Save aspose-com-gists/15c849f880fecfcf8000d447b4e3cb17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open first document | |
auto doc1 = MakeObject<Document>(u"file1.pdf"); | |
// Open second document | |
auto doc2 = MakeObject<Document>(u"file2.pdf"); | |
// Add pages of second document to the first | |
doc1->get_Pages()->Add(doc2->get_Pages()); | |
// Save concatenated output file | |
doc1->Save(u"merged-pdf.pdf"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment