1. Products
  2.   Conholdate.Total
  3.   .NET
  4.   ONE Merger

Split Single ONE to Many ONE Files in .NET

C# .NET ONE splitter API to split a single ONE file to several one page or multipage ONE files. Split documents and images using different filters by specifying exact page numbers, start or end page numbers and even or odd page numbers. Perform split operation to divide HTML, PDF, Text, OpenDocument, Microsoft Word, Excel, PowerPoint, Visio and OneNote documents to multiple resultant documents.

Download

Split ONE File & Add Watermarks in .NET

Split a single ONE document to multiple independent documents and insert image or text watermarks to each of the splitted files using C# .NET.

  • Instantiate Watermarker with splitted document
  • Instantiate watermark font, create TextWatermark object & set watermark properties
  • Add watermark and save watermarked document
  • Set output path where files will be saved after splitting
  • Instantiate SplitOptions object with path of splitted file and number of pages to be splitted
  • Create Merger object with input document and split using SplitOptions

Download Document Splitter API

You require GroupDocs.Merger & GroupDocs.Watermark namespaces to perform document splitter operations within PDF, Microsoft Office, HTML, OpenDocument and many other file formats. Explore other .NET APIs for Office documents as offered by Conholdate.Total.

Get the respective assembly files from the downloads or fetch the whole package from NuGet to add ‘Conholdate.Total` directly in your workspace.


// Supports merging Microsft Word, Excel, PowerPoint, Visio, OpenDocument, HTML, eBook and PostScript file formats
// Supported file formats: https://docs.groupdocs.com/merger/net/supported-document-formats/
using (Watermarker watermarker = new Watermarker("input.pdf"))
{
Font font = new Font("Arial", 19, FontStyle.Bold | FontStyle.Italic);
TextWatermark watermark = new TextWatermark("my watermark", font);
watermark.ForegroundColor = Color.Red;
watermark.BackgroundColor = Color.Blue;
watermark.TextAlignment = TextAlignment.Right;
watermark.Opacity = 0.5;
watermarker.Add(watermark);
watermarker.Save("output.pdf");
}
string outputFolder = @"c:\output\";
SplitOptions splitOptions = new SplitOptions(outputFolder + "document_{0}.{1}", new int[] { 1, 2, 4 });
using (Merger merger = new Merger("output.pdf"))
{
merger.Split(splitOptions);
}

Split Text File into Many Files in C# .NET

Using text splitter library for .NET applications – split each line or multi-lines of the source text file into a separate resultant .txt file by using a couple lines of C# code.

  • Initialize TextSplitOptions class with output files path format, desired TextSplitMode and line numbers
  • Instantiate Merger object with source document path or stream
  • Call Split method and pass TextSplitOptions object to save the resultant text files

Single Document Modification Operations

Perform multi-functional document manipulation features in a variety of document formats such as Word, Excel spreadsheet, Presentations, RTF, PDF, Visio, HTML, OneNote, XPS and many others by adding just a few lines of C# code.

The major single document operations include moving pages within a document to a new position, removing a single page or a collection or selected pages, swapping the page positions, extracting specific pages from the document, changing the page orientation to portrait or landscape mode and rotating the pages of the source document to 90, 180 or 270 degree angle.


// Supports merging Microsft Word, Excel, PowerPoint, Visio, OpenDocument, HTML, eBook and PostScript file formats
// Supported file formats: https://docs.groupdocs.com/merger/net/supported-document-formats/
string filePath = @"c:\sample.txt";
string filePathOut = @"c:\output\line_{0}.{1}";
TextSplitOptions splitOptions = new TextSplitOptions(filePathOut, new int[] { 3, 6 });
using (Merger merger = new Merger(filePath))
{
merger.Split(splitOptions);
}

What is ONE file format?

The ONE file format is a proprietary format developed by Microsoft for use with their OneNote software. OneNote is a note-taking and information management application that allows users to create and organize digital notes, images, and other types of content in a flexible and customizable workspace. The ONE file format is used to store these notes and other content created within OneNote.

OneNote is available on multiple platforms, including Windows, macOS, iOS, and Android, and the ONE file format is fully compatible across all platforms. This allows users to create notes and other content on one platform and access and edit them on another platform seamlessly.

The ONE file format is designed to be compact and efficient, allowing for fast and reliable storage and retrieval of notes and other content. The format supports a wide range of content types, including text, images, audio, and video, and also supports ink-based content created using a stylus or other input device.

In addition to its use with OneNote, the ONE file format can also be used to store and share notes and other content with other users. This allows for collaborative work and sharing of information, making it a powerful tool for team collaboration and knowledge management.

Learn

Popular Document Merger Options with .NET

Merge PDF Files

(Portable Document Format)

Merge WORD Files

(Word Processing Files)

Merge EXCEL Files

(Spreadsheet Files)

Merge VISIO Files

(Visio Diagram Files)

Merge WEB Files

(Web Files)

Merge DOC Files

(Microsoft Word Binary Format)

Merge DOCX Files

(Office 2007+ Word Document)

Merge DOCM Files

(Microsoft Word 2007 Marco File)

Merge DOT Files

(Microsoft Word Template Files)

Merge DOTM Files

(Microsoft Word 2007+ Template File)

Merge DOTX Files

(Microsoft Word Template File )

Merge RTF Files

(Rich Text Format)

Merge TXT Files

(Text Document)

Merge XLS Files

(Microsoft Excel Spreadsheet (Legacy))

Merge XLSB Files

(Excel Binary Workbook)

Merge XLSM Files

(Macro-enabled Spreadsheet)

Merge XLSX Files

(Open XML Workbook)

Merge XLT Files

(Excel 97 - 2003 Template)

Merge XLTM Files

(Excel Macro-Enabled Template)

Merge XLTX Files

(Excel Template)

Merge XLAM Files

(Excel Macro-Enabled Add-In)

Merge CSV Files

(Comma Seperated Values)

Merge TSV Files

(Tab Seperated Values)

Merge PPT Files

(Microsoft PowerPoint 97-2003)

Merge PPTX Files

(Open XML presentation Format)

Merge PPS Files

(PowerPoint Slide Show)

Merge PPSX Files

(PowerPoint Slide Show)

Merge VDX Files

(Vector Design eXchange)

Merge VSDM Files

(Visio Macro-Enabled Drawing)

Merge VSDX Files

(Visio Drawing)

Merge VSSM Files

(Visio SmartShape Master)

Merge VSSX Files

(Visio Stencil File)

Merge VSTM Files

(Visio Macro-Enabled Drawing Template)

Merge VSTX Files

(Visio Drawing Template)

Merge VSX Files

(Visio Stencil XML File)

Merge VTX Files

(Anim8or 3D Model)

Merge ONE Files

(OneNote Document)

Merge HTML Files

(Hyper Text Markup Language)

Merge MHT Files

(MHTML Web Archive)

Merge MHTML Files

(Web Page Archive Format)

Merge ODP Files

(OpenDocument Presentation Format)

Merge ODS Files

(OpenDocument Spreadsheet)

Merge ODT Files

(OpenDocument Text File Format)

Merge OTP Files

(OpenDocument Standard Format)

Merge OTT Files

(OpenDocument Standard Format)

Merge EPUB Files

(Open eBook File)

Merge ERR Files

(Error Report File)

Merge PS Files

(PostScript File)

Merge TEX Files

(LaTeX Source Document)

Merge XPS Files

(XML Paper Specifications)

 English