Convert Word, PDF and HTML files in C# and VB.NET

GemBox.Document enables you to easily convert documents into different file formats in C# and VB.NET. For example, you can convert Word or HTML files into a different Word format or into PDF, XPS, and image formats.

To do this, just load a Word document and save it into another file format as in the following example. For more details about supported document file formats in GemBox.Document, see Supported File Formats help page.

Convert Word to PDF Screenshot
Upload your file (Drag file here)
using GemBox.Document;

class Program
{
    static void Main()
    {
        // If using Professional version, put your serial key below.
        ComponentInfo.SetLicense("FREE-LIMITED-KEY");

        DocumentModel document = DocumentModel.Load("%InputFileName%");

        // In order to achieve the conversion of a loaded Word file to PDF,
        // or to some other Word format,
        // we just need to save a DocumentModel object to desired output file format.

        document.Save("Convert.%OutputFileType%");
    }
}
Imports GemBox.Document

Module Program

    Sub Main()

        ' If using Professional version, put your serial key below.
        ComponentInfo.SetLicense("FREE-LIMITED-KEY")

        Dim document As DocumentModel = DocumentModel.Load("%InputFileName%")

        ' In order to achieve the conversion of a loaded Word file to PDF,
        ' or to some other Word format,
        ' we just need to save a DocumentModel object to desired output file format.
        document.Save("Convert.%OutputFileType%")

    End Sub

End Module

Check next example or download examples from GitHub.