code: public static PdfTemplate createTemplate(PdfWriter writer, float width, float height) {
          return createTemplate(writer, width, height, null);
      }
docs: Creates a new template.
  <P>
  Creates a new template that is nothing more than a form XObject. This template can be included
  in this template or in another template. Templates are only written
  to the output when the document is closed permitting things like showing text in the first page
  that is only defined in the last page.
  
  @param writer the PdfWriter to use
  @param width the bounding box width
  @param height the bounding box height
  @return the created template