Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created September 24, 2019 10:15
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/2da7cda82747f498b84deb267669b355 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/2da7cda82747f498b84deb267669b355 to your computer and use it in GitHub Desktop.
string documentPath = @"C:\sample.docx";
string outputPath = @"C:\output\converted.pdf";
using (Converter converter = new Converter(documentPath))
{
PdfConvertOptions convertOptions = new PdfConvertOptions();
converter.Convert(outputPath, convertOptions);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment