Click here to Skip to main content
15,916,215 members
Please Sign up or sign in to vote.
3.60/5 (3 votes)
See more:
I have a large (over 2 GB...) PDF file that is organized with nested bookmarks into chapters and pages. Each top-level chapter may contain 1-n pages with around 1,000 or so chapters in each PDF file.

I need to split this file out into a series of smaller PDF files on the chapter-level bookmark using the iTextSharp.PDF library.

Does anyone have an experience along these lines and, if so, could you share, please? Sample code in C# would be appreciated also.

Thanks.
Posted
Updated 10-Feb-14 11:32am
v2
Comments
mukesh115 25-Apr-14 12:23pm    
I have an one problem with this. this is through exception "cannot find tailer"
Member 10586253 25-Apr-14 12:26pm    
an extra bookmarked blank page must be inserted at the end of the file so that the application can get the ending page number.

 
Share this answer
 
This will be of use,
Splitting and Merging PDF Files in C# Using iTextSharp[^]
Alternatively,you can choose a free PDF dll to do that,
[Spam link removed]

Greeting
swift
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900