Merge ODT

How to merge ODT files in C#

GroupDocs.Merger allows developers to merge ODT files when it’s needed to organize multiple ODT files into single document or send fewer attachments etc. And you can do this without¬†any third-party software or manual work involved. With GroupDocs.Merger it is possible to combine ODT documents of any size and structure - all text, images, tables, graphs, forms and other content will be preserved.

The following example demonstrates how to merge ODT files with several lines of C# code:

  • Create an instance of Merger class and pass source ODT file path as a constructor parameter. You may specify absolute or relative file path as per your requirements.
  • Add another ODT file to merge with Join method. Repeat this step for other ODT documents you want to merge.
  • Call Merger class Save method and specify the filename for the merged ODT file as parameter.
// Load the source ODT file
using (Merger merger = new Merger(@"c:\sample1.odt"))
    // Add another ODT file to merge
    // Merge ODT files ans save result

About ODT File Format

ODT files are type of documents created with word processing applications that are based on OpenDocument Text File format. These are created with word processor applications such as free OpenOffice Writer and can hold content such as text, images, objects and styles. The ODT file is to Writer word processor what the DOCX is to Microsoft Word. Several applications including Google Docs and Google’s web-based word processor included with Google Drive can open the ODT files for editing.

Code Examples

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!

Merge ODT Live Demo

GroupDocs.Merger for .NET provides an online ODT Merger App, which allows you to try it for free and check its quality and accuracy.

“Merge ODT”