public void write(PdfDocument document) throws IOException {
  setXfaForm(this,document);
}

public void write ( PdfDocument document ) throws IOException { setXfaForm ( this , document ) ; }
write the xfaform to the provided pdfdocument .
