extract documentdata for metadata check