ExcelTechnology
Methods to Split PDF Documents for General User and Programmers
It has a size limit when we want to submit a PDF document online. Therefore, we may need to split it into several smaller documents. Generally speaking, we can split it based on page numbers, file size and top-level bookmarks.
For General User
Adobe Acrobat is the most frequently used tool to operate PDF documents. Then, I want to share how to split PDF documents with Adobe Acrobat.
1. Click Split Document on Document menu after opening the PDF document we want to split.
2. Click Number of page and then enter the page numbers that each split document will have.
3. Click File Size and enter the size that each split document will be.
4. Click Top-level bookmarks to split a PDF document.
5. For additional options, click Output Options. We can save the documents to a specified path and give file names.
6. For splitting additional documents, Click Apply to Multiple and select the documents which we want to split. Then click OK to save them by giving a specified path and file names.
For Programmer or Tool Designer
Actually, there are many other tools which are used to split PDF documents. The tools are offered for general users who just want to click button simply to meet requirements. For programmers or tool designers, they need to realize this function programmatically. It is common to split PDF document with C#.
Also, I want to share a method to split PDF with C#.
This method needs us to install one add-in, Spire.PDF.
using System;
using Spire.Pdf;
namespace SplitDocument
{
class Program
{
static void Main(string[] args)
{
//open pdf document
PdfDocument doc = new PdfDocument(@"Sample3.pdf");
String pattern = "SplitDocument-{0}.pdf";
doc.Split(pattern);
String lastPageFileName
= String.Format(pattern, doc.Pages.Count - 1);
doc.Close();
//Launching the Pdf file.
System.Diagnostics.Process.Start(lastPageFileName);
}
}
}
In this article, I show how to split PDF documents, one for general user, and the other for PDF. Although the two methods need to use tool or add-in, they are simple and useful!
