Enable your Java applications to display over 170+ 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.
With GroupDocs.Viewer you can render SVG to HTML, JPEG, PNG or PDF in a few steps.
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.
// Set up input SVG file
String filePath = "input.svg";
// Instantiate Viewer
try (Viewer viewer = new Viewer(filePath))
{
// Set view options
HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources();
// Render SVG file to HTML with embedded resources
viewer.view(viewOptions);
}
View SVG file right now by visiting GroupDocs.Viewer Online Apps website.
No need to download API
No need to write any code
Just upload the source file
Scroll down or use the menu to navigate between pages
Multi-format documents and images viewer API for Java. View some of the popular file formats below without any external viewers.
Microsoft Word Open XML Document
CorelDRAW File
PowerPoint Open XML Presentation
Microsoft Excel Open XML Spreadsheet
AutoCAD Drawing
XML File
Adobe Photoshop Document
Adobe Illustrator Artwork
Microsoft Word Document
Plain Text File
Drawing Exchange Format File
vCard File
Hypertext Markup Language File
Portable Document Format File
JPEG Image
Portable Network Graphic
E-Mail Message
Rich Text Format File
OpenDocument Text Document
Comma-Separated Values File