/GemBox.Document.Examples

GemBox.Document is a .NET component that enables you to read, write, convert, and print document files (DOCX, DOC, PDF, RTF, HTML, and ODT) from .NET applications in a simple and efficient way.

Primary LanguageC#MIT LicenseMIT

NuGet version NuGet downloads Visual Studio Marketplace rating

What is GemBox.Document?

GemBox.Document is a .NET component that enables you to read, write, convert, and print document files (DOCX, DOC, PDF, RTF, HTML, and ODT) from .NET applications.

With GemBox.Document you get a fast and reliable component that's easy to use and doesn't depend on Microsoft Word. It requires only .NET and it's much faster than Microsoft Office Automation!

GemBox.Document Features

Get Started

You are not sure how to start working with Word documents in .NET using GemBox.Document? Check the code below that shows how to create a DOCX file from scratch and write 'Hello World!' on it.

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

// Create a new empty document.
var document = new DocumentModel();

// Add a section with one paragraph and some text.
document.Sections.Add(
    new Section(document,
        new Paragraph(document, "Hello World!")));

// Save the document as Word's DOCX file.
document.Save("Output.docx");

For more GemBox.Document code examples and demos, please visit our examples page.

Installation

You can download GemBox.Document from NuGet 📦 or from BugFixes 🛠️.

Resources