Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active April 5, 2022 19:07
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 aspose-com-gists/3cf669c52cdeb23b770eb59ea3982d05 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/3cf669c52cdeb23b770eb59ea3982d05 to your computer and use it in GitHub Desktop.
Convert MHT or MHTML to PDF File Programmatically in C# .NET
// Initialize PdfSaveOptions class object
PdfSaveOptions options = new PdfSaveOptions();
options.JpegQuality = 100;
// Convert MHT or MHTML to PDF
Converter.ConvertMHTML("sample.mht", options, "output.pdf");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment