GroupDocs.Merger for .NET

Extract WORD pages

Integrate GroupDocs.Merger for .NET into your .NET applications to efficiently process WORD files with advanced page extraction features.

How to extract WORD pages

GroupDocs.Merger makes it simple to extract pages from WORD documents. Enhance your .NET applications with seamless document processing capabilities.

  1. Provide the file path of the source WORD document.
  2. Select the pages you want to extract.
  3. Run the extraction process.
  4. Save the extracted pages as a separate document.
// Create an instance of GroupDocs.Merger with the source document
using (Merger merger = new Merger("document.docx"))
{
    // Define extraction settings for specific pages
    ExtractOptions extractOptions = new ExtractOptions(new int[] { 2 });

    // Execute the page extraction process
    merger.ExtractPages(extractOptions);

    // Execute the page extraction process
    merger.Save("result.docx");
}
dotnet add package GroupDocs.Merger
click to copy
copied
More examples Documentation

Versatile document processing

GroupDocs.Merger for .NET provides robust functionality for working with over 50 widely used business document formats.

Core features of GroupDocs.Merger

Merge multiple file types

Combine PDFs, Word documents, PowerPoint slides, Excel sheets, images, and archives into a single file with customizable options.

Advanced page management

Easily move, remove, or reorder pages within a document to organize your content effectively.

Modify page layout

Rotate pages to any angle or switch between portrait and landscape orientation as needed.

Extract specific pages

Select and extract only the required pages, saving them as a new document for further use.

Extract specific pages from a document

This example shows how to extract a selected range of pages from a WORD file and save them as a new document.

C#

// Specify the file path of the original document
using (Merger merger = new Merger("file_1.docx"))
{
    // Define options to extract only even-numbered pages from the selected range
    ExtractOptions extractOptions = new ExtractOptions(1, 3, RangeMode.EvenPages);

    // Perform the extraction operation
    merger.ExtractPages(extractOptions);

    // Save the extracted pages to a new file
    merger.Save("result.docx");
}
dotnet add package GroupDocs.Merger
click to copy
copied
More examples Documentation

About GroupDocs.Merger

GroupDocs.Merger for .NET is a powerful document processing library that supports over 50 file formats, including PDF, Word, Excel, PowerPoint, and images. It enables seamless operations like merging, splitting, extracting, reordering, and deleting pages.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Merger for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Main capabilities

Explore additional document processing features.

Extract pages from multiple file formats

GroupDocs.Merger supports over 50 file formats, making document management more flexible and efficient.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English