# GroupDocs.Viewer-for-Java **Repository Path**: checkp2p/GroupDocs.Viewer-for-Java ## Basic Information - **Project Name**: GroupDocs.Viewer-for-Java - **Description**: No description available - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-12 - **Last Updated**: 2024-03-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Document Viewer Java Library GroupDocs.Viewer for Java is a [Document Viewer API](https://products.groupdocs.com/viewer/java) for Java developers. It supports over 170 document types from popular categories such as Microsoft Office, OpenOffice, AutoCAD, Photoshop, Visio, images, metafiles, programming, archives, messages, PDF & more. View PDF, DOC, PPT, ODT, OTT, ODP among [many other documents](https://docs.groupdocs.com/viewer/java/supported-document-formats/) in HTML5, PDF or image modes with fast and high quality rendering. You may also choose your own rendering strategy by processing the document page-by-page, entire document at once or a custom page range. API also provides the ability to customize document appearance via additional rendering options to add watermarks, rotate or reorder pages, extract document text and much more!
Directory | Description --------- | ----------- [Demos](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java/tree/master/Demos) | GroupDocs.Viewer for Java Dropwizard and Spring Demo projects. [Examples](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java/tree/master/Examples) | Java examples and sample documents for you to get started quickly. ## View Documents As HTML, PDF or Images - Display document content in any web-browser. - View document pages separately. - Rotate, reorder pages or [add watermarks](https://docs.groupdocs.com/viewer/java/add-text-watermark/). - Customizable resource management options for CSS, fonts & images. - Render all pages of a document as a single PDF. - Boost document loading speed with configurable caching. - Extract document text along with words' coordinates. - Extract basic information about source documents such as file type, pages count and so on. - Auto-detect document type. - [Replace missing font](https://docs.groupdocs.com/viewer/java/replace-missing-font/) or use custom fonts for rendering. ## Get Started with GroupDocs.Viewer for Java GroupDocs.Viewer for Java requires J2SE 7.0 (1.7), J2SE 8.0 (1.8) or above. Please install Java first if you do not have it already. GroupDocs hosts all Java APIs on [GroupDocs Artifact Repository](https://artifact.groupdocs.com/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-viewer), so simply [configure](https://docs.groupdocs.com/viewer/java/installation/) your Maven project to fetch the dependencies automatically. ## Render DOCX As Responsive HTML ```java Viewer viewer = new Viewer("sample.docx"); HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources(); viewOptions.setRenderResponsive(true); viewer.view(viewOptions); viewer.close(); ``` ## View DOCX As Protected PDF ```java Viewer viewer = new Viewer("sample.docx"); Security security = new Security(); security.setDocumentOpenPassword("o123"); security.setPermissionsPassword("p123"); security.setPermissions(Permissions.ALLOW_ALL ^ Permissions.DENY_PRINTING); PdfViewOptions viewOptions = new PdfViewOptions(filePath); viewOptions.setSecurity(security); viewer.view(viewOptions); viewer.close(); ``` [Home](https://www.groupdocs.com/) | [Product Page](https://products.groupdocs.com/viewer/java) | [Documentation](https://docs.groupdocs.com/viewer/java/) | [Demo](https://products.groupdocs.app/viewer/family) | [API Reference](https://apireference.groupdocs.com/java/viewer) | [Examples](https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Java/tree/master/Examples) | [Blog](https://blog.groupdocs.com/category/viewer/) | [Search](https://search.groupdocs.com/) | [Free Support](https://forum.groupdocs.com/c/viewer) | [Temporary License](https://purchase.groupdocs.com/temporary-license)