Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active October 13, 2019 20:16
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/bd84fc4c945b3359a8aea40bbc3fdb57 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/bd84fc4c945b3359a8aea40bbc3fdb57 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
ConversionHandler conversionHandler = new ConversionHandler(Utilities.getConfiguration());
CellsLoadOptions loadOptions = new CellsLoadOptions();
loadOptions.setSkipEmptyRowsAndColumns(true);
loadOptions.setOnePagePerSheet(true);
PdfSaveOptions saveOptions = new PdfSaveOptions();
ConvertedDocument result = conversionHandler.<String>convert(sourceFileName, loadOptions, saveOptions);
result.save(sourceFileName + "." + result.getFileType());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment