ByteScout PDF SDK – C# – Convert – HTML to DOCX

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – C# – Convert – HTML to DOCX

ByteScout PDF SDK – C# – Convert – HTML to DOCX

Program.cs

using System.Diagnostics;
using Bytescout.PDF.Converters;

namespace ConvertHtmlToDocx
{
    class Program
    {
        static void Main(string[] args)
        {
            using (HtmlToDocxConverter converter = new HtmlToDocxConverter())
            {
                converter.ConvertHtmlToDocx("sample.html", "result.docx");
            }

            // Open result document in default associated application (for demo purpose)
            ProcessStartInfo processStartInfo = new ProcessStartInfo("result.docx");
            processStartInfo.UseShellExecute = true;
            Process.Start(processStartInfo);
        }
    }
}


  Click here to get your Free Trial version of the SDK

prev
next