GroupDocsGists
10/24/2017 - 1:21 PM

Examples-GroupDocs.Conversion.Examples.Java-src-main-java-com-groupdocs-conversion-examples-Conversion-convertToImageAsFilePath.java

// For complete examples and data files, please go to https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java
// Instantiating the conversion handler
ConversionHandler conversionHandler = new ConversionHandler(Utilities.getConfiguration());
SaveOptions saveOption = new ImageSaveOptions();
saveOption.setConvertFileType(ImageSaveOptions.ImageFileType.Jpg);
saveOption.setOutputType(OutputType.String);

List<String> convertedDocumentPath = conversionHandler.<List<String>> convert(fileName, saveOption);