Hi,
I am creating the pdf by using this approach. Suppose i create new page and add some text on that and in the remaining height i want to add the image, but problem is that how to get the object of the current page or previously created page.
Thanks & Regards.
Get the previous page object
Re: Get the previous page object
Support · Jun 26, 2008Hello,
Current page object will be in scope and you can use the object what you have created. You will have to use this object to add the page to the document.
document.Pages.Add(pageObject);
You can add image to the pageObject without any problem.
If you want to add any elements to the previous page then you can get that page by using the page collection.
Page previousPage = document.Pages[document.Pages.Count-2];
You can acces any page from the PDF using the page index in this page collection.
Thanks,
ceTe Software Support Team.