Merge EPUB C#

EPUB files are widely supported by software readers as different books and writings are published electronically. In certain cases, you may want to merge different EPUB files into a single file in C#. Under such scenarios, this article explains how to merge EPUB files programmatically in C#.

Merge EPUB Files – C# API Installation

Aspose.HTML for .NET API supports creating or manipulating several types of file formats. You can quickly configure it by downloading the reference DLL files from the Downloads section or running the following NuGet installation command:

PM> Install-Package Aspose.Html

How to Merge EPUB Files in C#

You can merge EPUB files by following the steps below:

  1. Load the source EPUB files.
  2. Create an instance of EpubRenderer class.
  3. Initialize an object of PdfDevice class.
  4. Merge the EPUB files with the Render method.

The following section further explains the details along with a runnable code snippet:

Merge EPUB Files in C#

You can merge or combine multiple EPUB files and create a single PDF file by following the steps below:

  1. Load the input EPUB files.
  2. Instantiate an object of EpubRenderer class.
  3. Initialize an instance of PdfDevice class.
  4. Combine the source EPUB files into a PDF file with the Render method.

The code snippet below shows how to merge EPUB files into a single file using C#:

Explore Aspose.HTML for .NET

You may take a look at the API documentation to learn about many other features offered by the API.

Get Free License

You can obtain a free temporary license to test the API without any evaluation limitations.

Conclusion

In this article, you have learned how to merge different EPUB files programmatically in C#. It also contains a code snippet to demonstrate combining different EPUB files into a single PDF document. However, in case of any queries, please feel free to contact us at forum.

See Also

Convert EPUB to TIFF in C#