A short Python script based on pypdf that checks if PDF files contain JavaScript code, and if applicable print it.

I discovered this coding puzzle in numero 4 of Paged Out, on page 32.
I found it fun and wrote my own solution in Python: paintbrush.py
It reminded me of Project Euler problems.
I recommend to give it a go based on the Paged Out one-page article, without reading Alperen Keles answer or mine! 🙂
"Qu’est-ce qu’un beau code ?" Voilà une question qui obsède un rien Xavier de La Porte. Mais peut-être a-t-il trouvé la réponse dans une thèse sur l’esthétique du code rédigé par un étudiant nommé Pierre Depaz. Vous le saurez à la fin de ce podcast.
My first job was a trial by fire, to this day, that codebase remains the worst and the best codebase I ever had the pleasure of working in.
[...] I hope I can share with you some of its most fun and scary stories.I mean a database table called calendar. What did it contain? A manually filled-out calendar.
When asking our resident shaman (who went by the name Munch), he informed me that when the calendar runs out we can't login to the system.
😱