Wordize 25.1 Released

We are happy to announce the first version of Wordize is published.

Wordize for .NET is a class library that can be used by C#, F#, VB.NET developers for a variety of document-processing tasks, including converting, rendering, report generation, signing, comparing, splitting and merging. Our library is self-sufficient and doesn’t depend on any third-party software, such as Microsoft Word, OpenOffice, and similar office suites.

Functionality

  • Comprehensive document conversion with 35+ supported file formats. For example, you can convert PDF to Word and Word to PDF documents with professional quality.
  • Document comparison feature.
  • Flexible LINQ Reporting Engine, designed to fetch data from databases, XML, JSON, OData, external documents.
  • Report generation feature using Mail Merge.
  • High-fidelity rendering of Word documents to PDF, XPS, JPG, PNG and other imaging formats.
  • Document signing feature.
  • Document merging feature.
  • Ability to replace text in documents with simple text or formatted with HTML or Markdown syntax text.
  • Ability to split documents using different split criteria.
  • Easy way to add watermarks into the document.

Getting Started

Setting Wordize License using C#

In evaluation mode Wordize injects an evaluation watermark into the processed document and limits the maximum size of the processed document to several hundreds of paragraphs.
It is required to set the license to use Wordize features without evaluation version limitations. Base license allows working with MS Word document formats.
The set of supported document formats and allowed features can be extended by applying the appropriate licenses:

Wordize.Settings.SetLicense(@"Wordize.Net.lic");
// Add license that allows working with web formats, such as HTML, MHTML or Markdown
Wordize.Settings.SetLicense(@"Wordize.Web.Net.lic");
// Add license that enables LINQ Reporting Engine
Wordize.Settings.SetLicense(@"Wordize.Reporting.Net.lic");

Convert a DOCX to PDF using C#

Wordize for .NET allows you to convert between various document formats, the following code demonstrates how to convert DOCX to PDF.

Converter.Convert(@"C:\Temp\in.docx", @"C:\Temp\out.pdf");

Compare documents using C#

Wordize for .NET allows you to compare documents, the differences in the resulting document are marked with revisions.

Comparer.Compare(@"C:\Temp\v1.docx", @"C:\Temp\v2.docx", @"C:\Temp\out.docx", "Wordize", DateTime.Now);

Signing documents using C#

Wordize for .NET allows you to sign Doc, Dot, Docx, Dotx, Docm, Odt, Ott and Xps documents.

CertificateHolder holder = CertificateHolder.Create(@"C:\Temp\my.pfx", "mypassword");
Signer.Sign(@"C:\Temp\in.docx", @"C:\Temp\out.docx", holder);

Fill template with data using Mail Merge

Wordize for .NET allows template with data using Mail Merge feature.

string[] fieldNames = new string[] { "FirstName", "Location", "SpecialCharsInName()" };
string[] fieldValues = new string[] { "James Bond", "London", "Classified" };

MailMerger.Execute(@"C:\Temp\in.docx", @"C:\Temp\out.docx", fieldNames, fieldValues);

Merge documents using C#

Wordize for .NET allows to merge several documents.

Merger.Merge(@"C:\Temp\out.docx", new string[] { @"C:\Temp\in1.docx", @"C:\Temp\in2.pdf", @"C:\Temp\in3.doc", @"C:\Temp\in4.rtf" });

Replace text in documents using C#

Wordize for .NET allows to replace text in documents.

int occurrences = Replacer.Replace(@"C:\Temp\in.docx", @"C:\Temp\out.docx", "replace me", "my cool replacement");

Generate reports using LINQ Reporting Engine using C#

Wordize for .NET allows to generate reports using various data sources such as JSON, XML or Objects. For example the following syntax in template:

Name: <<[data.Name]>>\r\nPosition: <<[data.Position]>>

can be filled with the following JSON data:

{ 
    Name: "James Bond",
    Position: "Spy" 
}

using the following simple code:

ReportBuilder.BuildReport(@"C:\Temp\in.docx", @"C:\Temp\out.docx", new JsonDataSource(@"C:\Temp\data.json"), "data");

Split documents using C#

Wordize for .NET allows easily split documents.

Splitter.Split(@"C:\Temp\in.docx", @"C:\Temp\out.docx", new SplitOptions() { SplitCriteria = SplitCriteria.Page });

Add watermarks using C#

Wordize for .NET allows easily add watermark to documents.

Watermarker.SetText(@"C:\Temp\in.docx", @"C:\Temp\out.docx", SaveFormat.Docx, "My Cool Watermark");