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. Image for the cookie policy date

Need to Add more pages to an existing PDF

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


1 Reply

MW Melba Winshia Syncfusion Team 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






Loader.
Live Chat Icon For mobile
Up arrow icon