Added check_extractable option to skip checking if the document is extrable