hf_extract function

extract header footer info from docorator object