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/
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
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