<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-viewer</artifactId>
    <version>17.5.0</version>
</dependency>
copied!  
compile(group: 'com.groupdocs', name: 'groupdocs-viewer', version: '17.5.0')
copied!  
<dependency org="com.groupdocs" name="groupdocs-viewer" rev="17.5.0">
    <artifact name="groupdocs-viewer" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.groupdocs" % "groupdocs-viewer" % "17.5.0"
copied!  

Document Viewer & Renderer Java High Code API

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

GroupDocs.Viewer for Java is a native & On-premise Java API to help you build Document Viewer & Renderer Java applications that work with 170+ file formats for Word® documents, Excel® spreadsheets, PowerPoint® presentations, Outlook® & Apple® emails, PDF, images, CAD drawings, zipped archives, Microsoft Project® tasks, text files, and other file formats.

Document Viewer Java On-premise API Features

  • Document Rendering
    • Render desired pages, N consecutive pages, & hidden pages.
    • Render pages in your preferred order or reorder pages after rendering.
    • Ability to render document notes & document comments.
    • Support for page rotation & page flipping.
    • Replace missing fonts within the document or set custom fonts.
    • Rendering to various supported file formats:
      • Rendering to HTML with embedded as well as external resources.
      • Rendering to PNG & JPEG
      • Rendering to PDF
    • Ability to auto-detect the document type for rendering.
    • Supports listing and saving the following types of attachments / associations:
      • Email attachments
      • Files embedded within PDF files
      • Files inside a compressed / zipped archive.
    • Option to render email attachments and other type of file attachments.
    • Extract additional information based of the file extension, such as:
      • Archive: list of contained folders
      • CAD: list of layers and layouts
      • Email: list of contained folders in an Outlook data file
      • PDF: document printing restriction information;
      • Project Management: project start & end date
    • Add text watermark to all of the rendered pages.

Supported Document Viewer File Formats

The supported load file formats of GroupDocs.Viewer for Java are as follows:

Microsoft Word®: DOC/DOCM/DOCX/DOT/DOTM/DOTX/RTF/TXT
OpenOffice Writer®: ODT/OTT
Microsoft Excel®: XLS/XLSB/XLSM/XLSX/XLT/XLTX/XLTM/XLAM/TSV/CSV/SpreadSheetML
OpenOffice Calc®: ODS/FODS/OTS/SXC
Apple®: NUMBERS
Microsoft PowerPoint®: POTM/POTX/PPS/PPSM/PPSX/PPT/PPT/PPTX/POT
OpenOffice Impress®: ODP/FODP/OTP
Microsoft Outlook®: EML/MSG/OST/PST/VCF/VCARD
Apple® Mail: EMLX/MBOX
Microsoft Visio®: VDW/VDX/VSD/VSDM/VSDX/VSS/VSSM/VSSX/VST/VSTX/VSX/VTX
Microsoft OneNote®: ONE
Microsoft Project®: MPP/MPT/MPX
Fixed Layout: PDF/XPS/OXPS
LaTeX: TEX
Postscipt: PS/EPS
eBook: CHM/EPUB/MOBI/
Adobe Photoshop®: PSD/PSB
Adobe Illustrator® AI
Autodesk®: DWF/DWG/IFC/IGS/PLT
AutoCAD®: DWT/DXF/
CorelDRAW: CDR/CMX
MicroStation: DGN
3D: STL
CAD: CF2
Wavefront: OBJ
Hewlett-Packard®: HPG
Programming Language: CS/VB/AS/AS3/ASM/BAT/C/CC/CMAKE/CPP (C++)/CSS/CXX/DIFF/ERB/GROOVY/H/HAML/HH/JAVA/JS/JSON/LESS/M/MAKE/MD/ML/MM/PHP/PL/PROPERTIES/PY/RB/RST/SASS/SCALA/SCM/SCRIPT/SH/SML/SQL/VIM/YAML/NSF
Image: BMP/DJVU/DNG/DIB/GIF/ICO/JP2/JPF/JPX/JPM/J2C/J2K/JPC/JPG/JPEG/TIF/TIFF/WEBP/PNG/APNG/TGA
Vector: SVG/SVGZ
OpenOffice Draw®: ODG/FODG/OTG
Medical Imaging: DCM
Printer Command Language: PCL
Metadata: CGM/EMF/EMZ/
Markup: HTML/MHT/MHTML/XML
Archive: TAR/ZIP/RAR/BZ2/XZ/TXZ/GZ/TGZ

The following file formats support the auto-detection feature:

Microsoft Word®: DOC/DOCM/DOCX/DOT/DOTM/DOTX/RTF/TXT
OpenOffice Writer®: ODT/OTT
Microsoft Excel®: XLS/XLSB/XLSM/XLSX/XLT/XLTX/XLTM/XLAM/TSV/CSV/SpreadSheetML
OpenOffice Calc®: ODS/FODS/OTS/SXC
Apple®: NUMBERS
Microsoft PowerPoint®: POTM/POTX/PPS/PPSM/PPSX/PPT/PPT/PPTX/POT
OpenOffice Impress®: ODP/FODP/OTP
Microsoft Outlook®: EML/MSG/OST/PST/VCF/VCARD
Apple® Mail: EMLX/MBOX
Microsoft Visio®: VDW/VDX/VSD/VSDM/VSDX/VSS/VSSM/VSSX/VST/VSTX/VSX/VTX
Microsoft OneNote®: ONE
Microsoft Project®: MPP/MPT/MPX
Fixed Layout: PDF/XPS/OXPS
LaTeX: TEX
Postscipt: PS/EPS
eBook: CHM/EPUB/MOBI/
Adobe Photoshop®: PSD/PSB
Adobe Illustrator® AI
Autodesk®: DWF/DWG/IFC/IGS/PLT
AutoCAD®: DWT/DXF/
CorelDRAW: CDR/CMX
MicroStation: DGN
3D: STL
CAD: CF2
Wavefront: OBJ
Hewlett-Packard®: HPG
Programming Language: CS/VB
Image: BMP/DJVU/DNG/DIB/GIF/ICO/JP2/JPF/JPX/JPM/J2C/J2K/JPC/JPG/JPEG/TIF/TIFF/WEBP/PNG/APNG/TGA
Vector: SVG/SVGZ
OpenOffice Draw®: ODG/FODG/OTG
Medical Imaging: DCM
Printer Command Language: PCL
Metadata: CGM/EMF/EMZ/
Markup: HTML/XML
Archive: TAR/ZIP/RAR/BZ2/XZ/TXZ/GZ/TGZ

For details and limitations please visit, Supported Document Formats.

System Requirements

  • Microsoft Windows
    • Microsoft Windows Server 2003 and later
    • Microsoft Windows XP (x64, x86)
    • Microsoft Windows Vista (x64, x86)
    • Microsoft Windows 7, 8, 8.1 (x64, x86)
    • Microsoft Windows 10 (x64, x86)
    • Microsoft Windows 11 (x64)
  • macOS
    • Mac OS X
  • Linux
    • Ubuntu
    • OpenSUSE
    • CentOS
    • others
  • Java
    • J2SE 7.0 (1.7)
    • J2SE 8.0 (1.8)
    • above (for example Java 10)

GroupDocs.Viewer for Java does not require any external software or third party tool to be installed. Just follow one of the ways as described in Installation and Configuration.

Get Started

GroupDocs hosts all Java APIs at the GroupDocs Repository. You can easily use GroupDocs.Viewer for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installation from GroupDocs Repository using Maven documentation page.

Sample Java code to Render PDF into HTML with Embedded Resources

try (Viewer viewer = new Viewer("sample.pdf"))
{
    HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources("page_{0}.html");
    viewer.view(viewOptions);
}

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

VersionRelease Date
24.10October 31, 2024
24.8August 29, 2024
24.6June 28, 2024
24.4May 1, 2024
24.2February 29, 2024
23.11November 30, 2023
23.7July 14, 2023
23.4April 21, 2023
23.2February 1, 2023
22.12December 12, 2022
22.9September 20, 2022
3.2.2January 25, 2022
3.2.0January 25, 2022
21.4January 25, 2022
21.11.1January 25, 2022
2.9.0January 25, 2022
2.4.1January 25, 2022
2.5.0January 25, 2022
2.6.0January 25, 2022
2.3.0January 25, 2022
2.2.0January 25, 2022
2.13.0January 25, 2022
19.8January 25, 2022
19.8.2January 25, 2022
19.8.1January 25, 2022
19.1January 25, 2022
17.5.1January 25, 2022
21.11November 24, 2021
21.2February 26, 2021
20.7July 24, 2020
20.1.1June 9, 2020
20.1January 31, 2020
19.11November 22, 2019
19.3March 29, 2019
17.2.0April 19, 2018
17.5.0April 19, 2018
2.10.0April 19, 2018
2.11.0April 19, 2018
2.12.0April 19, 2018
2.14.0April 19, 2018
2.4.0April 19, 2018
2.7.0April 19, 2018
2.8.0April 19, 2018
2.9.1April 19, 2018
3.0.0April 19, 2018
3.2.1April 19, 2018
3.7.0April 19, 2018