Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Use the EPUB Converter guides when your source is an EPUB e-book or digital publication. Aspose.HTML for .NET converts EPUB files to PDF, XPS, DOCX, JPG, PNG, BMP, TIFF, and GIF in C#.
EPUB is an XML-based publication format that often needs conversion for printing, archiving, document workflows, thumbnails, and distribution outside e-reader software. In Aspose.HTML for .NET, EPUB conversion uses Converter.ConvertEPUB() with save options for the target format. The complete C# example project is available in the Aspose.HTML for .NET GitHub repository.
PdfSaveOptions, ImageSaveOptions, DocSaveOptions, or XpsSaveOptions.Converter.ConvertEPUB() and pass the EPUB source, options, and output path.The following example converts EPUB to PDF with PdfSaveOptions.
1// Convert EPUB to PDF using C#
2
3// Open an existing EPUB file for reading
4using FileStream stream = File.OpenRead(DataDir + "input.epub");
5
6// Prepare a path to save the converted file
7string savePath = Path.Combine(OutputDir, "input-output.pdf");
8
9// Create an instance of the PdfSaveOptions class
10PdfSaveOptions options = new PdfSaveOptions();
11
12// Call the ConvertEPUB() method to convert EPUB to PDF
13Converter.ConvertEPUB(stream, options, savePath);EPUB to documents
EPUB to image formats
Use the online EPUB Converter for quick manual conversion. Use Aspose.HTML for .NET when EPUB conversion must be automated in C#.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.