include function extract_pdf in package and documentation