Merge OTT

How to merge OTT files in C#

GroupDocs.Merger allows developers to merge OTT files when it’s needed to organize multiple OTT 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 OTT 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 OTT files with several lines of C# code:

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

About OTT File Format

Files with OTT extension represent template documents generated by applications in compliance with the OASIS’ OpenDocument standard format. These are created with word processor applications such as free OpenOffice Writer and can hold settings that can be used to generate new documents from these template files. These settings include page margins, borders, headers, footers, and other page settings. Such templates are used in official documents such as company letterheads and standardized forms.

Code Examples

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

Merge OTT Live Demo

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

“Merge OTT”