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.
Syncfusion Feedback

Need to Add more pages to an existing PDF

Thread ID:

Created:

Updated:

Platform:

Replies:

69819 Nov 13,2007 03:25 PM UTC Nov 14,2007 08:51 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Kevin Wainwright
Asked On November 13, 2007 03:25 PM UTC

Hi im using the PDF dll and am able to create a PDF doc but i now need to add more pages to the doc thats being created
what is the best way to go about this

thanks


Melba Winshia [Syncfusion]
Replied On November 14, 2007 08:51 AM UTC

Hi Kevin,

Thank you for your interest in Syncfusion Products.

You can add more pages to an existing PDF by using IPDFPageCollection.Add method.

[C#]

IPDFPage page;

for (int i = 0; i <= 5; i++)
{

// Create new page
page = pdfDoc.CreatePage();

//Add to existing document
pdfDoc.Pages.Add(page);
}

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/PDF.Web/5.2.0.25_Pdf.Legacy/69819/main.htm

Please try this and let me know if this helps.

Thanks,
Melba






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.

Warning Icon 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.Close Icon

;