GroupDocs.Conversion for Java combines a powerful set of document conversion APIs to display images and document formats in your Java applications without needing to install additional software. It natively rasterizes the documents and converts them into SVG+HTML+CSS to enhance the quality of document viewing while delivering a true-text, high-fidelity output. Using the document rendering API – quickly view PDF, HTML, XML, Microsoft Office Word, Excel worksheets, PowerPoint presentations, Outlook emails, Visio diagrams, Project, metafiles, images and various other file formats with ease and fewer programming hazards. It can also display password-protected files and allow to get document representation as HTML, image or PDF form after the rendering. Our file conversion library is quite customizable, as it allows you to display the whole document, or render it partially to speed up the process. Through GroupDocs.Conversion for Java API, you can view pages, specific cell range in a spreadsheet or even render an individual document layer in formats, such as, PDF and CAD.
GroupDocs.Conversion for Java API allows you to render documents with/without annotation or comments for supported file formats. It also enables you to add custom font directories and extract basic document information such as FileType, Extension, Name, PageCount, etc.
GroupDocs.Conversion for Java is compatible with all Java versions and supports popular operating systems (Windows, Linux, macOS) that are capable to run Java runtime.
Following is an overview of GroupDocs.Conversion for Java:
GroupDocs.Conversion for Java supports converting between all popular and commonly used document file formats.
GroupDocs.Conversion for Java supports following Operating Systems, Frameworks & Package Managers:
Using GroupDocs.Conversion for Java API, you can read input document from a file path as well as a URL. While you can save the output document as a file or sent the output directly into a stream.
You can convert file format of a multitude of document types using GroupDocs.Conversion for Java API. Here you are presented with a few lines of code to perform a basic document conversion using Java.
ConversionConfig config = new ConversionConfig(); //set storage folder config.setStoragePath(storagePath); ConversionHandler conversionHandler = new ConversionHandler(config); ImageSaveOptions saveOptions = new ImageSaveOptions(); saveOptions.setConvertFileType(ImageSaveOptions.ImageFileType.PSD); PsdOptions psdOptions = new PsdOptions(); psdOptions.setColorMode(PsdOptions.ColorModes.GRAYSCALE); psdOptions.setCompressionMethod(PsdOptions.CompressionMethods.RAW); ConvertedDocument result = conversionHandler. convert(sourceFileName, saveOptions); result.save(sourceFileName + "." + result.getFileType());
GroupDocs.Conversion for Java is a simple and to-the-point API that you can integrate into your Java-based applications pretty easily. However, to get you up and running in no time, we also provide easy to follow code samples and comprehensive API documentation.