EPUB File Viewer for C# .NET Applications

View EPUB in browser.

Download Free Trial

How to open EPUB files Using C#

To view EPUB file, we will use GroupDocs.Viewer API which is powerful and easy to start use API for .NET platform. Open NuGet package manager, search for GroupDocs.Viewer and install. In Package Manager Console use following command:

Package Manager Console Command

PM> Install-Package GroupDocs.Viewer

Steps for View EPUB File in C#

GroupDocs.Viewer makes it easy for .NET developers to add EPUB file viewing feature in their applications by implementing a few easy steps.

  • Create an instance of Viewer class and load the EPUB file with full path.
  • Set options to convert EPUB file into PNG format.
  • Convert file and check output in the current directory.

System Requirements

GroupDocs.Viewer for .NET APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.

  • Operating Systems: Microsoft Windows, Linux, MacOS
  • Development Environments: Microsoft Visual Studio, Visual Studio Code, .NET CLI
  • Frameworks: .NET Framework, .NET Standard, .NET Core, .NET
  • Get the latest version of GroupDocs.Viewer for .NET from NuGet

View JSON file using C# example code

  // Instantiate viewer
  using (Viewer viewer = new Viewer("sample.epub"))
  	// Set view options 
  	ViewOptions viewOptions = new PngViewOptions();
  	// Convert file to PNG and check the output in the current directory 

How to convert EPUB to PDF using C# example code

  // Instantiate viewer
  using (Viewer viewer = new Viewer("sample.epub"))
  	// Set view options 
  	ViewOptions viewOptions = new PdfViewOptions();
  	// Convert EPUB to PDF and check the output in the current directory 

Free App to View

With GroupDocs.Viewer .NET API you can view 170+ popular document formats in your .NET applications by adding a few lines of code. You can easily display PDF, Word Processing, Excel Spreadsheet, Presentation, Visio, Project, Outlook and many other popular document formats in HTML5, image or PDF modes. The document rendering is fast, identical to the original source file, and it does not require installing Microsoft Office or any other external libraries.
Below is an example of a free online application built on the Viewer.

Other File Formats Rendering & Viewing

Multi format documents and images viewer API for .NET. View some of the popular file formats below without any external viewers.

.NET DOC Viewer

(Microsoft Word Document)

.NET DOCM Viewer

(Microsoft Word Macro-Enabled Document)

.NET DOCX Viewer

(Microsoft Word Open XML Document)

.NET DOT Viewer

(Microsoft Word Document Template)

.NET DOTM Viewer

(Microsoft Word Macro-Enabled Template)

.NET DOTX Viewer

(Word Open XML Document Template)

.NET RTF Viewer

(Rich Text File Format)

.NET TXT Viewer

(Plain Text File Format)

.NET XLS Viewer

(Microsoft Excel Binary File Format)

.NET XLSX Viewer

(Microsoft Excel Open XML Spreadsheet)

.NET XLSM Viewer

(Microsoft Excel Macro-Enabled Spreadsheet)

.NET XLSB Viewer

(Microsoft Excel Binary Spreadsheet File)

.NET XLTX Viewer

(Microsoft Excel Open XML Template)

.NET TSV Viewer

(Tab Separated Values File)

.NET XLAM Viewer

(Microsoft Excel Macro-Enabled Add-In)

.NET CSV Viewer

(Comma Separated Values File)

.NET PPT Viewer

(PowerPoint Presentation)

.NET PPS Viewer

(Microsoft PowerPoint Slide Show)

.NET PPTX Viewer

(PowerPoint Open XML Presentation)

.NET PPSX Viewer

(PowerPoint Open XML Slide Show)

.NET POTX Viewer

(Microsoft PowerPoint Open XML Template)

.NET POTM Viewer

(Microsoft PowerPoint Template)

.NET PPTM Viewer

(Microsoft PowerPoint Presentation)

.NET PPSM Viewer

(Microsoft PowerPoint Slide Show)

.NET PDF Viewer

(Adobe Portable Document Format)

.NET XPS Viewer

(Open XML Paper Specification)

.NET TEX Viewer

(LaTeX Source Document)

.NET ODS Viewer

(Open Document Spreadsheet)

.NET ODP Viewer

(OpenDocument Presentation File Format)

.NET OTP Viewer

(Origin Graph Template)

.NET ODT Viewer

(Open Document Text)

.NET OTT Viewer

(Open Document Template)

.NET VST Viewer

(Microsoft Visio 2003-2010 XML Drawing)

.NET TIFF Viewer

(Tagged Image File Format)

.NET JPEG Viewer

(JPEG Image)

.NET PNG Viewer

(Portable Network Graphic)

.NET GIF Viewer

(Graphical Interchange Format File)

.NET BMP Viewer

(Bitmap File Format)

.NET ICO Viewer

(Microsoft Icon File)

.NET PSD Viewer

(Adobe Photoshop Document)

.NET WEBP Viewer

(Raster Web Image File Format)

.NET SVG Viewer

(Scalable Vector Graphics File)

.NET JP2 Viewer

(JPEG 2000 Core Image File)

.NET MPP Viewer

(Microsoft Project Document)

.NET MPT Viewer

(Microsoft Project Template)

.NET HTML Viewer

(Hyper Text Markup Language)

.NET MHT Viewer

(MIME Encapsulation of Aggregate HTML)


(MIME Encapsulation of Aggregate HTML)

.NET MSG Viewer

(Microsoft Outlook E-mail Message)

.NET EML Viewer

(E-mail Message)

.NET ONE Viewer

(Microsoft OneNote)

.NET WMF Viewer

(Windows Metafile)

.NET EMF Viewer

(Windows Enhanced Metafile)

.NET PSD Viewer

(Adobe Photoshop Document)

.NET VSD Viewer

(Microsoft Visio 2003-2010 Drawing)

.NET VSDX Viewer

(Microsoft Visio Drawing)

.NET VSS Viewer

(Microsoft Visio 2003-2010 Stencil)

.NET VDX Viewer

(Microsoft Visio 2003-2010 XML Drawing)

.NET VDW Viewer

(Microsoft Visio 2010 Web Drawing)

Back to top