- Home
- Forum
- ASP.NET Web Forms (Classic)
- Split PDF document
Split PDF document
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!!!!
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!!!!
SIGN IN To post a reply.
4 Replies
DK
Dhivya K
Syncfusion Team
September 27, 2006 07:26 AM UTC
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.
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.
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.
PD
Praveen Dayanithi
September 27, 2006 01:25 PM UTC
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?
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?
DK
Dhivya K
Syncfusion Team
September 28, 2006 03:57 PM UTC
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.
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.
DK
Dhivya K
Syncfusion Team
September 29, 2006 12:58 PM UTC
Hi Praveen,
Here is a sample which will split up the document into number of small documents each of one page.
Please let me know if you have any other queries.
Thanks,
Dhivya.
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.
SIGN IN To post a reply.
- 4 Replies
- 3 Participants
-
PK PRAVEEN KUMAR DAYANITHI
- Sep 26, 2006 03:44 PM UTC
- Sep 29, 2006 12:58 PM UTC