Trusted by the world’s leading 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.
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.
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.
Split a PDF by fixed number of pages
Divide PDF documents into smaller segments based on a fixed number of pages.
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Product Updates
Technical Support
Frequently Asked Questions
What is splitting PDFs?
PDF splitting is the process of dividing a single PDF file into multiple separate PDF files, each containing a portion of the original document.
Will splitting a PDF affect the original file?
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.
Can I merge split PDF files back together?
Yes, if you’ve split a PDF into multiple files, you can typically merge them back together using the PDF merge feature.
Why would I need to split a PDF?
You might need to split a PDF to extract specific pages, separate chapters or sections, or share only relevant portions of a document.
What are some common criteria for splitting a PDF?
Common criteria for splitting PDFs include specific pages, page range, page count.
Is PDF splitting secure?
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
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.