from urllib.parse import urlparse


def check_pdf(download_url: str) -> bool:
    """Check if the download_url is a PDF or not by reading the extension."""
    result = urlparse(download_url)
    return result.path[-3:] == 'pdf'