Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Created November 9, 2020 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/15c849f880fecfcf8000d447b4e3cb17 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/15c849f880fecfcf8000d447b4e3cb17 to your computer and use it in GitHub Desktop.
// 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