We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Split PDF document

Thread ID:

Created:

Updated:

Platform:

Replies:

49773 Sep 26,2006 11:44 AM Sep 29,2006 08:58 AM ASP.NET Web Forms (Classic) 4
loading
Tags: PDF
PRAVEEN KUMAR DAYANITHI
Asked On September 26, 2006 11:44 AM

hi there,

I am very new to syncfusion essential PDF and at my work i have a task which splits a pdf document of 1000 pages into many small pdf documents based on the PageBreaks or Bookmarks.

Can any of you help me with this? Also can you give me some links that has tutorials for this EssentialPDF. Help is appreciated

Thanks in advance!!!!

Dhivya K [Syncfusion]
Replied On September 27, 2006 03:26 AM

Hi Praveen,

Thank you for your interest in Essential PDF.

1. It is possible to spilt a PDF document into multiple PDF documents based on the pages.

It can be done as follows.
//Create two PDF documents
PDFDocument doc1 = new PDFDocument();
PDFDocument doc2 = new PDFDocument();

//To add page 9 and page 10 into pdf document1
doc1.Pages.Add (ldoc.Pages[9] );
doc1.Pages.Add(ldoc.Pages[10]);

//To add page 5 amd page 6 into pdf document2
doc2.Pages.Add( ldoc.Pages[ 5 ] );
doc2.Pages.Add( ldoc.Pages[ 6 ] );

//Save pdf document1 and document2
doc1.Save("Document1.pdf" );
doc2.Save("Document2.pdf" );

Here is a sample for your reference.
SplitDocument.zip

2. You can find the samples in following URL of your system after installing Essential Studio.
C:\Program Files\Syncfusion\Essential Studio\4.2.0.37\Windows\Pdf.Windows\Samples
C:\Program Files\Syncfusion\Essential Studio\4.2.0.37\Web\Pdf.Web\Samples

Also,You can find online documentation at following url.
http://www2.syncfusion.com/library/default.aspx

You can also find online demo at following URL.
http://www2.syncfusion.com/2.0/samples.aspx

Please let me know if you have anyother queries.

Thanks,
Dhivya.

Praveen Dayanithi
Replied On September 27, 2006 09:25 AM

Hi Dhivya,

Thank you very much, dat was very much helpful.... I tried wat you said it didnt work properly because the pdf file which i have is about 1000 pages and also i need to divide into subdocuments based on their bookmarks. Could you please tell me how to divide them based on their bookmarks with an example?

Dhivya K [Syncfusion]
Replied On September 28, 2006 11:57 AM

Hi Praveen,

Sorry for the delay in getting back to you.

Currently we do not have support for reading bookmarks to split the document. However I will consult with development team regarding their thoughts on this feature.

However,we do have option to split up the document without importing it.You can split up the document by specifying the starting page number from where you need to split up.

I will provide you with a sample by tomorrow.

Regards,
Dhivya.

Dhivya K [Syncfusion]
Replied On September 29, 2006 08:58 AM

Hi Praveen,

Here is a sample which will split up the document into number of small documents each of one page.
SplitDocument.zip

Please let me know if you have any other queries.

Thanks,
Dhivya.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;