looping through pages

looping through pages

Forum member · Aug 1, 2007
i need to add a page element to every page of a document after they are all built. my first thought is something like: foreach page in Document.Pages{ page.Add... } and i've seen 'Document.Pages.Count' in the forum. but intellisense doesn't give me a 'Pages' property of 'Document'.

Re: looping through pages

Support · Aug 1, 2007
Hello, Yes, you can loop through the pages of the document without any problem. You can find the Pages property of the document object. You can acces in the following way. //document is the object for Document class int pageCount = document.Pages.Count; Thanks, ceTe Software Support Team.