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.
Up arrow icon