In this scenario you extract the data from the PDF document first, and then the signatures. The ADS signature check does not check whether the PDF has been signed by an authorized person. The application must perform this check, if required.
SET_DOCUMENT( document ).
SET_TASK_EXTRACTDATA( ).
SET_TASK_GETSIGNATURES( ).
EXECUTE( ).
GET_DATA( ).
GET_SIGNATURES( ).