GemBox.Document (gembox-document) is a .NET component that enables developers to read, write, and convert document files from their .NET applications.
GemBox.Document Free is free of charge while GemBox.Document Professional is a commercial version licensed per developer. Server deployment is royalty-free.
Support
Read | Read & Write | Write |
---|---|---|
DOC, DOT | DOCX, DOTX, DOCM, DOTM | PDF, PDF/A |
PDF [β] | ODT | XPS |
HTML, MHTML | PNG, JPG, GIF, BMP, TIFF | |
RTF | ||
XML | ||
TXT |
Hello World
C#
// Create a new document.
DocumentModel document = new DocumentModel();
// Create a new section.
Section section = new Section(document);
document.Sections.Add(section);
// Create a new paragraph.
Paragraph paragraph = new Paragraph(document);
section.Blocks.Add(paragraph);
// Add "Hello World" text.
Run run = new Run(document, "Hello World");
paragraph.Inlines.Add(run);
// Save as DOCX file.
document.Save("Output.docx");
VB.NET
' Create a new document.
Dim document As New DocumentModel()
' Create a new section.
Dim section As New Section(document)
document.Sections.Add(section)
' Create a new paragraph.
Dim paragraph As New Paragraph(document)
section.Blocks.Add(paragraph)
' Add "Hello World" text.
Dim run As New Run(document, "Hello World!")
paragraph.Inlines.Add(run)
' Save as DOCX file.
document.Save("Hello World.docx")
Top Features
- Create or Generate PDF file in C# and VB.NET
- Create or Generate PDF / Word and export it in ASP.NET
- Create and save Word file (DOCX) in ASP.NET Core
- Create and write Word file (DOCX) in C# and VB.NET
- Convert Word files to PDF in C# and VB.NET
- Convert HTML pages to PDF in C# and VB.NET
- Convert between Word files and HTML pages in C# and VB.NET
- Convert ASPX to PDF in C# and VB.NET
- Read and extract PDF text in C# and VB.NET
- Open and read Word file in C# and VB.NET
- Edit and save Word template in C# and VB.NET
- Print Word files in C# and VB.NET
- Mail Merge in Word with C# and VB.NET
- Open, read, create, write DOCX in C# and VB.NET
- Open, read, convert Word 2003 (DOC) in C# and VB.NET
- Open, read, create, write RTF in C# and VB.NET
System Requirement
- .NET Framework 3.5 - 4.8
- .NET Core 3.1 (.NET 5 & 6 for Windows)
- .NET Standard 2.0 (.NET 5 & 6 for Linux, macOS, Android, iOS, …)
Installation
You can download GemBox.Document from NuGet
Or from BugFixes ️