Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created November 3, 2019 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/0a984b16b1dcca2de9b4e48096d19345 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/0a984b16b1dcca2de9b4e48096d19345 to your computer and use it in GitHub Desktop.
// 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();
ConvertedDocument convertedDocumentPath = conversionHandler.<String> convert("sample.png", saveOption);
convertedDocumentPath.save("output" + "." + convertedDocumentPath.getFileType());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment