We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Syncfusion is trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

With the Syncfusion .NET PDF library, you can easily split PDF files. This is especially handy for dealing with large documents like reports or manuals, which can be tricky to manage and share. By breaking these big files into smaller parts, sharing and accessing the specific information you need becomes much simpler.

The split PDF feature works seamlessly across platforms, including Windows, macOS, Linux, Android, and iOS through any .NET-based applications, such as ASP.NET Core, ASP.NET MVC, Blazor, .NET MAUI, Xamarin, WinForms, WPF, and WinUI.

How to split PDF files in C#

This sample code shows how to split PDF files using the Syncfusion .NET PDF library. With just a few lines of code, you can split a large PDF document into several PDF files, each containing a single page.

//Add the required namespaces
using Syncfusion.Pdf.Parsing;
using Syncfusion.Pdf;

// Create the FileStream object to read the input PDF file
using (FileStream inputFileStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read))
{
    // Load the PDF document from the input stream
    using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputFileStream)) 
    {
        // Iterate over the pages of the loaded document
        for (int pageIndex = 0; pageIndex < loadedDocument.PageCount; pageIndex++) 
        {
            // Create a new PdfDocument object to hold the output
            using (PdfDocument outputDocument = new PdfDocument())
            {
                // Import the page from the loadedDocument to the outputDocument
                outputDocument.ImportPage(loadedDocument, pageIndex); 
                
                // Create the FileStream object to write the output PDF file
                using (FileStream outputFileStream = new FileStream($"Output{pageIndex}.pdf", FileMode.Create, FileAccess.Write))
                {
                    // Save the outputDocument into the outputFileStream
                    outputDocument.Save(outputFileStream);
                }
            }
        }
    }
}

Key Functions of Split PDF

Discover how the Split PDF feature simplifies document management by breaking it into smaller components.

Split PDF into multiple PDF files in .NET PDF.

Split PDF into multiple PDF files

Separate specific pages or page ranges from a PDF document into individual files. This improves file organization and collaboration while preserving the integrity of the original PDF.

Split PDF pages into separate PDF file in .NET PDF.

Select and split PDF pages into a separate PDF file

Programmatically select single or multiple pages from the document based on criteria such as page number and content and save them as a single PDF document.

Split PDF by fixed page number in .NET PDF.

Split PDF by fixed page number

Divide PDF documents into smaller segments based on a fixed number of pages.

Split PDF based on bookmarks in .NET PDF.

Split PDF based on bookmarks

Splitting a PDF document based on bookmarks offers a straightforward method for extracting bookmarked pages.

Split PDF with optimized file size in .NET PDF.

Split PDF with optimized file size

While splitting the PDF document, the file size is optimized by removing unused resources without altering any content.

Split PDF with accessibility tags in .NET PDF.

Split PDF with accessibility tags

While splitting the PDF document, accessibility tags are extracted from the parent document, ensuring compatibility with the structured PDF document.

Explore Split PDF references

Discover valuable resources from our blog and knowledge base to enhance your efficiency in Splitting PDF.

Easy ways to split a PDF document using C

Blog

6 Easy ways to split a PDF document using C#

How to split one PDF file into multiple PDF files

Knowledge base

How to split one PDF file into multiple PDF files

How to split a PDF page into half using C

Knowledge base

How to split a PDF page into half using C#

How to import pages from multiple PDF documents to one PDF document within a specific page range using C

Knowledge base

How to import pages from multiple PDF documents to one PDF document within a specific page range using C#

Split a PDF document based on the first level of bookmarks using C

Knowledge base

Split a PDF document based on the first level of bookmarks using C#

Split PDF document into multiple PDF files in .NET PDF

Knowledge base

Split a PDF document based on each level of bookmarks

Syncfusion .NET PDF Library Resources

Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.

Struggling to decide on the right product?

Our comprehensive competitor comparison of PDF framework will guide you to the perfect choice.

tick-mark 20+ Conversions support
tick-mark 50+ interactive demos
tick-mark 1.7M+ downloads
competitive-banner-FT-image

Frequently Asked Questions

PDF splitting is the process of dividing a single PDF file into multiple separate PDF files, each containing a portion of the original document.

No, splitting a PDF does not alter the original file. It creates new PDF files based on the specified splitting criteria, leaving the original PDF intact.

Yes, if you’ve split a PDF into multiple files, you can typically merge them back together using the PDF merge feature.

You might need to split a PDF to extract specific pages, separate chapters or sections, or share only relevant portions of a document.

Common criteria for splitting PDFs include specific pages, page range, page count, and bookmarks.

The PDF splitting feature of the Syncfusion .NET PDF library is secure as it maintains the integrity of the original PDF document and its contents without making any alterations.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Want to create, view, and edit PDF files in C# or VB.NET?

Start a free 30-day evaluation today!
DOWNLOAD FREE TRIAL

No credit card required.

Mobile Free Evaluation Section

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Scroll up icon