code: func (t *FpdfTpl) FromPage(page int) (Template, error) {
  	// pages start at 1
  	if page == 0 {
  		return nil, errors.New("Pages start at 1 No template will have a page 0")
  	}
  
  	if page > t.NumPages() {
  		return nil, fmt.Errorf("The template does not have a page %d", page)
  	}
  	// if it is already pointing to the correct page
  	// there is no need to create a new template
  	if t.page == page {
  		return t, nil
  	}
  
  	t2 := *t
  	t2.page = page
  	return &t2, nil
  }
docs: // FromPage creates a new template from a specific Page