C# .NET DOTM splitter API to split a single DOTM file to several one page or multipage DOTM 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.
DownloadSplit a single DOTM document to multiple independent documents and insert image or text watermarks to each of the splitted files using C# .NET.
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); | |
} |
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.
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); | |
} |
The DOTM file format is a file format developed by Microsoft to be used in conjunction with the Office Open XML file formats. The DOTM file format is not compatible with other Office formats such as DOCX and PPTX, so it needs to be converted before it can be used. The DOTM file format contains documents, templates, and macros that can be used to automate tasks within Microsoft Office applications. It is used to store information that is shared between Office applications. The DOTM file format was introduced in the Office 2007 and the later releases of the Office suite. With DOTM files, users can create a template, add macros to it, and save it for use in any Office application. This allows for quick and easy sharing of data across multiple applications. Furthermore, it also ensures that all Office applications can access the same data, making it easier to collaborate on projects. The DOTM file format is useful for quickly creating templates and macros that can be used across multiple Office applications. It also allows users to store data securely, making sure that only authorized personnel can access it. Finally, it helps to ensure that users can quickly and easily share data across different Office applications.
Learn(Portable Document Format)
(Word Processing Files)
(Spreadsheet Files)
(Visio Diagram Files)
(Web Files)
(Microsoft Word Binary Format)
(Office 2007+ Word Document)
(Microsoft Word 2007 Marco File)
(Microsoft Word Template Files)
(Microsoft Word 2007+ Template File)
(Microsoft Word Template File )
(Rich Text Format)
(Text Document)
(Microsoft Excel Spreadsheet (Legacy))
(Excel Binary Workbook)
(Macro-enabled Spreadsheet)
(Open XML Workbook)
(Excel 97 - 2003 Template)
(Excel Macro-Enabled Template)
(Excel Template)
(Excel Macro-Enabled Add-In)
(Comma Seperated Values)
(Tab Seperated Values)
(Microsoft PowerPoint 97-2003)
(Open XML presentation Format)
(PowerPoint Slide Show)
(PowerPoint Slide Show)
(Vector Design eXchange)
(Visio Macro-Enabled Drawing)
(Visio Drawing)
(Visio SmartShape Master)
(Visio Stencil File)
(Visio Macro-Enabled Drawing Template)
(Visio Drawing Template)
(Visio Stencil XML File)
(Anim8or 3D Model)
(OneNote Document)
(Hyper Text Markup Language)
(MHTML Web Archive)
(Web Page Archive Format)
(OpenDocument Presentation Format)
(OpenDocument Spreadsheet)
(OpenDocument Text File Format)
(OpenDocument Standard Format)
(OpenDocument Standard Format)
(Open eBook File)
(Error Report File)
(PostScript File)
(LaTeX Source Document)
(XML Paper Specifications)