def METHOD_NAME(template_name: str) -> str:
    """
    Convert the given template name into a suitable filename for
    its PDF rendering:
        >>> template_name_to_pdf_filename('blah/foo-thing.html')
        'foo-thing.pdf'
    """
    filename = PurePosixPath(template_name)
    return f"{filename.stem}.pdf"