Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Syncfusion JavaScript PDF Library allows you to split PDF files into smaller, more manageable documents. This is especially useful when working with large PDFs where extracting only the needed sections simplifies sharing, navigation, and storage.

The split functionality works seamlessly across modern JavaScript frameworks and environments, including JavaScript, TypeScript, Angular, React, Vue, ASP.NET Core, and Node.js. Whether running in the browser or on the server, it enables efficient and flexible PDF processing for any web application.

How to split PDF files in JavaScript?

import { PdfDocument, PdfDocumentSplitEventArgs} from '@syncfusion/ej2-pdf';
import { Save } from '@syncfusion/ej2-file-utils';

// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data);
document.splitEvent = documentSplitEvent;
// Split PDF document into individual pages
document.split();
// Event to invoke while splitting PDF document data
function documentSplitEvent(sender: PdfDocument, args: PdfDocumentSplitEventArgs): void {
  Save.save('output_' + args.splitIndex + '.pdf', new Blob([args.pdfData], { type: 'application/pdf' }));
}
// Destroy the document
document.destroy();

Key functions of Split PDF

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

Javascript Pdf Split Pdf Into Multiple Pdf Files image

Split a PDF into multiple PDF files

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

Javascript Pdf Split Pdf Pages Into Separate Pdf File image

Split a range of pages into a separate PDF document

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

Javascript Pdf Split Fixed Number Pages image

Split a PDF by fixed number of pages

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

Syncfusion JavaScript PDF Library Resources

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

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.

The PDF splitting feature of the Syncfusion JavaScript PDF Library is secure, as it preserves the integrity of the original PDF and its contents, not modifying or altering the source document in any way.

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

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