How do I get PDF files of my taxes?

I'm trying to download my files from 2023 and 2024, but I need them as PDFs. How do I do this? Can I do this?