code: func (f *Fpdf) OutputAndClose(w io.WriteCloser) error {
  	f.Output(w)
  	w.Close()
  	return f.err
  }
docs: // OutputAndClose sends the PDF document to the writer specified by w. This
  // method will close both f and w, even if an error is detected and no document
  // is produced.