Convert EBook

About EBook File Format

Ebook files are electronic files that can be opened on digital devices known as eReaders. An eReader can be any device such as a computer, a tablet or a smartphone. The most popular ebook file format is the XML based ePub. An ebook can contain different types of contents such as text, image, and video. Common ebook file extensions and their file formats include EPUB (electronic publication), FB2 (FictionBook 2.0) and Mobi (MobiPocket eBook File).

Convert from EBook

With GroupDocs.Conversion you can easily convert your Ebook document into another file format.
For example Ebook to PDF conversion code snippet will look like this:

// Load the source Ebook file
using (Converter converter = new Converter("sample.mobi"))
{
    // Set the convert options for PDF format
    PdfConvertOptions options = new PdfConvertOptions();
    // Convert to PDF format
    converter.Convert("converted.pdf", options);
}

Put it simply - you just load a Ebook file into Converter, select desired output format and all the rest will be done by GroupDocs.Conversion.

Convert to Ebook

On the other hand, converting your files to Ebook format is also quite simple and natural. The following code sample demonstrates how to convert PDF document to Ebook in C# using GroupDocs.Conversion.

// Load the source PDF file
using (Converter converter = new Converter("sample.pdf"))
{
    // Set the convert options for epub format
    var options = new PdfConvertOptions {
        Format = PdfFileType.Epub
    };
    // Convert to EPUB format
    converter.Convert("converted.epub", options);
}

© Aspose Pty Ltd 2001-2022. All Rights Reserved.