multi-page templates

multi-page templates

Forum member · Dec 12, 2007
what is the preferred method of adding new elements to the first page of an existing multi-page document? if the template were single-page, i'd use ImportedPageArea. thanks, marc

Re: multi-page templates

Support · Dec 12, 2007
Hello Marc, You can add new elements to a particular page of an existing PDF document without any problem. You can access a page by using the index of the page from the PageCollection. Following is some sample code for this. MergeDocument document = new MergeDocument(@"C:\Temp\DocA.pdf"); Page page = document.Pages[0]; page.Elements.Add(new element here); Thanks, ceTe Software Support Team.

Re: multi-page templates

Forum member · Dec 12, 2007
does the MergeDocument constructor require an absolute file system path, or can i use relative paths?

Re: multi-page templates

Forum member · Dec 12, 2007
sorry, i've answered my own question. they must be file system paths. thanks,

Re: multi-page templates

Support · Dec 12, 2007
Hello, You can use the relative path in the MergeDocument constructor without any problem. Following is the sample line of code. MergeDocument document = new MergeDocument( MapPath("/PDFs/DocA.pdf") ); Thanks, ceTe Software Support Team.