public int AddPageTemplateVerbose(int pageno, string basepath, string regionfile, string gfxfile, int width, int height, bool haspattern, bool hidden);
See the AddPageTemplate function. This enables more control and allows pointing back to previous pages that share the layout.