an additional solution that may work and require no coding is to insert the PDF into a post and just have the post protected. Then insert the post onto the page
an additional solution that may work and require no coding is to insert the PDF into a post and just have the post protected. Then insert the post onto the page