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/e9430c3ddc4064ed70f111d1c166dc8e to your computer and use it in GitHub Desktop.
Save GroupDocsGists/e9430c3ddc4064ed70f111d1c166dc8e 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-.NET
Contracts.Func<LoadOptions> getLoadOptions = () => new SpreadsheetLoadOptions
{
SkipEmptyRowsAndColumns = true,
OnePagePerSheet = true
};
using (Converter converter = new Converter("sample.xlsx", getLoadOptions))
{
PdfConvertOptions options = new PdfConvertOptions();
converter.Convert("converted.pdf", options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment