def do_set_collection_text_mining_pdf(poa_article, crossref_config):
    """decide whether to text mining pdf resource"""
    if (
        crossref_config.get("text_mining_pdf_pattern")
        and crossref_config.get("text_mining_pdf_pattern") != ""
        and poa_article.get_self_uri("pdf") is not None
    ):
        return True
    return False