Hi @Toppo! Welcome to our community, and thanks for sending your code in.
You’ll be pleased to know that your answers here are pretty much perfect; well done!
The only comment I had was that in the third example, I’d include the “(PDF, 4MB)” text inside the link rather than just after it. This is because screenreader users often look at links outside the context of the full page (for example macOS voiceover allows them to pull up a list of all the links in the page in a modal window), so that information would be useful to include with the link text.