GroupDocsGists
10/24/2017 - 1:21 PM

Examples-GroupDocs.Conversion.Examples.Java-src-main-java-com-groupdocs-conversion-examples-Conversion-convertToPdfAsFilePath.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());
PdfSaveOptions saveOption = new PdfSaveOptions();
saveOption.setOutputType(OutputType.String);

// Set absolute path to file
String guid = fileName;

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