The form can be either an XDP or a PDF but the form must have a schema associated with it for this feature to work. You must also choose the embed the schema option in the Form Properties for the fields to be extracted. I have included a sample form that has the schema embedded in it in boith XDP and PDF formats.