I was asked to link when I finished my book project; printing took a couple weeks longer than expected. I’ll write up a more technical blog post and leave a link as a comment here in a few days, but the high-level version is that I used Ruby + Parslet to regenerate LaTeX which I ran through pdflatex.
Recently saw some similar pieces of art on the internet.
It took significantly longer than a few days, but here’s that post.