Render & View EPUB File in Java

Native and high performance EPUB file viewer API for Java, J2EE and J2SE based applications, supporting a wide range of additional features to customize the appearance of the output document format.

Download Free Trial

About GroupDocs.Viewer for Java API

Enable your Java applications to display over 150+ file formats in HTML, PDF or image modes using GroupDocs.Viewer for Java APIs without any additional software installed; such as Microsoft Office, Apache Open Office, Adobe Acrobat Reader etc. Developers can easily view all popular images and document types including Microsoft Office, OpenDocument, HTML, PDF, Archive, Diagrams, Photoshop, AutoCAD and programming language formats inside the Java applications with fast and highest quality rendering.

Steps for View EPUB File in Java

GroupDocs.Viewer makes it easy for Java developers to add EPUB file viewing feature in their applications using a few lines of code.

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

System Requirements

GroupDocs.Viewer for Java 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 Environment: NetBeans, IntelliJ IDEA, Eclipse etc.
  • Java Runtime Environment: Java 7 (1.7) and above
  • Get the latest version of GroupDocs.Viewer for Java from GroupDocs Artifact Repository

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

EPUB Viewer Live Demos

Display EPUB file right now by visiting GroupDocs.Viewer Live Demos website.
The live demo has the following benefits

No need to download API

No need to write any code

Just upload the source file

Get download link to save the file

About EPUB File Format

Files with .EPUB extension are an e-book file format that provide a standard digital publication format for publishers and consumers. The format has been so common by now that it is supported by many e-readers and software applications. For example, on Mac OS, the pre-installed Books software provides the support for opening such files. In addition, there are a lot of compatible software available for smartphones, tablets and computers. EPUB file standards are maintained by the International Digital Publishing Forum (IDPF). The version EPUB 3 is also endorsed by the Book Industry Study Group (BISG), a leading book trade association for standardized best practices, research, information and events, for packaging of content.

Read More About EPUB File Format

Other File Formats Rendering & Viewing

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

Java DOC Viewer

(Microsoft Word Document)

Java DOCM Viewer

(Microsoft Word Macro-Enabled Document)

Java DOCX Viewer

(Microsoft Word Open XML Document)

Java DOT Viewer

(Microsoft Word Document Template)

Java DOTM Viewer

(Microsoft Word Macro-Enabled Template)

Java DOTX Viewer

(Word Open XML Document Template)

Java RTF Viewer

(Rich Text File Format)

Java TXT Viewer

(Plain Text File Format)

Java XLS Viewer

(Microsoft Excel Binary File Format)

Java XLSX Viewer

(Microsoft Excel Open XML Spreadsheet)

Java XLSM Viewer

(Microsoft Excel Macro-Enabled Spreadsheet)

Java XLSB Viewer

(Microsoft Excel Binary Spreadsheet File)

Java XLTX Viewer

(Microsoft Excel Open XML Template)

Java TSV Viewer

(Tab Separated Values File)

Java XLAM Viewer

(Microsoft Excel Macro-Enabled Add-In)

Java CSV Viewer

(Comma Separated Values File)

Java PPT Viewer

(PowerPoint Presentation)

Java PPS Viewer

(Microsoft PowerPoint Slide Show)

Java PPTX Viewer

(PowerPoint Open XML Presentation)

Java PPSX Viewer

(PowerPoint Open XML Slide Show)

Java POTX Viewer

(Microsoft PowerPoint Open XML Template)

Java POTM Viewer

(Microsoft PowerPoint Template)

Java PPTM Viewer

(Microsoft PowerPoint Presentation)

Java PPSM Viewer

(Microsoft PowerPoint Slide Show)

Java PDF Viewer

(Adobe Portable Document Format)

Java XPS Viewer

(Open XML Paper Specification)

Java TEX Viewer

(LaTeX Source Document)

Java ODS Viewer

(Open Document Spreadsheet)

Java ODP Viewer

(OpenDocument Presentation File Format)

Java OTP Viewer

(Origin Graph Template)

Java ODT Viewer

(Open Document Text)

Java OTT Viewer

(Open Document Template)

Java VST Viewer

(Microsoft Visio 2003-2010 XML Drawing)

Java TIFF Viewer

(Tagged Image File Format)

Java JPEG Viewer

(JPEG Image)

Java PNG Viewer

(Portable Network Graphic)

Java GIF Viewer

(Graphical Interchange Format File)

Java BMP Viewer

(Bitmap File Format)

Java ICO Viewer

(Microsoft Icon File)

Java PSD Viewer

(Adobe Photoshop Document)

Java WEBP Viewer

(Raster Web Image File Format)

Java SVG Viewer

(Scalable Vector Graphics File)

Java JP2 Viewer

(JPEG 2000 Core Image File)

Java MPP Viewer

(Microsoft Project Document)

Java MPT Viewer

(Microsoft Project Template)

Java HTML Viewer

(Hyper Text Markup Language)

Java MHT Viewer

(MIME Encapsulation of Aggregate HTML)

Java MHTML Viewer

(MIME Encapsulation of Aggregate HTML)

Java MSG Viewer

(Microsoft Outlook E-mail Message)

Java EML Viewer

(E-mail Message)

Java ONE Viewer

(Microsoft OneNote)

Java WMF Viewer

(Windows Metafile)

Java EMF Viewer

(Enhanced Metafile Format)

Java PSD Viewer

(Adobe Photoshop Document)

Java VSD Viewer

(Microsoft Visio 2003-2010 Drawing)

Java VSDX Viewer

(Microsoft Visio Drawing)

Java VSS Viewer

(Microsoft Visio 2003-2010 Stencil)

Java VDX Viewer

(Microsoft Visio 2003-2010 XML Drawing)

Java VDW Viewer

(Microsoft Visio 2010 Web Drawing)

Back to top