Don't know if it's the sender or just Apple's Mail.app but I needed to do the whole copy base64 text into a file and command line decode into a PDF thing again today.
I suspect it's Apple since I never have that problem in KMail on Linux.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!