Skip to content

Instantly share code, notes, and snippets.

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/a76fa663bdceb0408649f6a143ea0def to your computer and use it in GitHub Desktop.
Save GroupDocsGists/a76fa663bdceb0408649f6a143ea0def 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
// Setup Conversion configuration
ConversionHandler conversionHandler = new ConversionHandler(Utilities.getConfiguration());
PdfSaveOptions options = new PdfSaveOptions();
ConvertedDocument result = conversionHandler.<String>convert(sourceFileName, options);
System.out.println("Elapsed time: " + result.getElapsed() + "ms");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment