public int AddPageTemplate(int pageno, int width, int height, bool haspattern, bool hidden);
Adds a page template to the document. Has pattern means that the page "uses" one page address for pages completely without pattern. This can be set to false. Hidden means that the page will not show up at printing but will be available for future use without breaking the page-to-pageaddress mapping.