Ok so here is what you need to do just to show your link when you have the pdf uploaded. First select your link and access the link settings and choose Show all Settings
You will then a see all the element settings.
On Conditional Visibility press the + button and select the pdf file
then select when Is Set
click save and that should fix your issue. I hope this helps. Let me know if you have more issues.