C# Word to ePub Conversion
Why Convert Word to ePub
EPUB, short for electronic publication is designed for reflowable content, meaning that the text display can be optimized for the particular display device used by the reader of the EPUB-formatted book. In September 2007, EPUB became an official standard of the IDPF and superseded the older Open eBook standard. EPUB supports CSS styling, DRM, embedded metadata, inline raster and vector images. It's free and open and enables to resize text content.
C# Word to ePub Conversion
Like convert Word to PDF or to HTML, Spire.Doc (the professional .NET Word component) can also help us easily convert Word to ePub. Make sure Spire.Doc and Visual Studio are correctly installed on system. Follow the simple steps below to do C# Word to ePub conversion.
- Step 1 Create Project
using System;
using Spire.Doc;
namespace DocToHTML
{
class Program
{
static void Main(string[] args)
{
}
}
}
- Step 2 Load Word Document
Document doc = new Document();
doc.LoadFromFile(@"..\..\Test.doc",FileFormat.Doc);
- Step 3 Save and Preview
doc.SaveToFile(@"..\..\Test.epub",FileFormat.epub);
System.Diagnostics.Process.Start(@"..\..\Test.epub");
Now, the whole process is finished. Press F5 to start the project and an ePub file will be automatically generated.
As a professional and powerful Word component, Spire.Doc doesn't need Microsoft Office Word Automation but also allows user to directly operate Word document, format and style and insert content to Word document. Click to learn more…