GroupDocsGists
10/24/2017 - 8:24 AM

convertFileToSVGAsStream.java

// For complete examples and data files, please go to https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java
ConversionHandler conversionHandler = new ConversionHandler(Utilities.getConfiguration());
ImageSaveOptions options = new ImageSaveOptions();
options.setConvertFileType(ImageSaveOptions.ImageFileType.SVG);
		 
List<GroupDocsInputStream> convertedDocumentStream = conversionHandler.<List<GroupDocsInputStream>>convert(sourceFileName, options);
System.out.print("Converted file path is: " + convertedDocumentStream);