I'm attempting to create a pdf using an existing pdf document. In the current document I have a button that runs a simple script to insert a new page from the hidden page template in the document.
I want to use iTextsharp to fill out this form and add a new page if required, but for the life of me I can figure out how to add a page from the page templates.
Since the page template is hidden with in the original file, I can't seem to access is since it technically doesn't have a page number.
In the script in the original document I accomplish this as follows:
var addTemp = this.getTemplate("tsAdd");
addTemp.spawn();
I want to keep the template page hidden as the original file still gets used for other tasks.