Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Split Large PDF into Multiple Sub Files

$
0
0

When using Aspose.Pdf.Facades.PdfFileEditor Class, the Extract Method, causes substantial speed issues when attempting to split a large 200 MB(180,000 pages) pdf file into multiple chunks of approximately 2000 pages.  Every time the Extract method is being invoked, the reader is being reopened which takes a considerable amount of cpu/network time.  In my case this occurs approximately 90 times.

 

We implemented a class and method using iTextSharp which instantiates the reader once and leaves it open upon subsequent invocations.  It is implemented using member variables to hold onto the reader and is then closed upon deconstruction of the object. 

 

This method cuts processing time from several minutes to several seconds.  I would rather use Aspose.PDF to accomplish the task instead.  Is there an existing method for Splitting a large PDF into multiple files while leaving the Input file open?  If not, can an existing method be modified to do so?

Viewing all articles
Browse latest Browse all 3131

Trending Articles