Skip to content

Instantly share code, notes, and snippets.

@groupdocs-com-kb
Last active April 14, 2024 17:17
Merge EPUB Files using C#. For more information, please follow link: https://kb.groupdocs.com/merger/net/merge-epub-files-using-csharp/
using GroupDocs.Merger;
namespace MergeEPUBFilesUsingCSharp
{
internal class Program
{
static void Main(string[] args)
{
// Set License to avoid the limitations of Merger library
License lic = new License();
lic.SetLicense(@"GroupDocs.Merger.lic");
// Load the source EPUB file
using (Merger merger = new Merger(@"sample1.epub"))
{
// Add another EPUB file to merge
merger.Join(@"sample2.epub");
// Merge EPUB files and save result
merger.Save(@"merged.epub");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment