Astro actual makes it possible to render PDF pages. I hope astro-typst could support PDF builds (a new mode other than HTML/SVG):
https://github.com/Myriad-Dreamin/blog/blob/90db5688cac5d50db112692fea646361dd3fcd0c/src/pages/archive/%5B...slug%5D.pdf.ts
I can PR upon we reach consensus on API design.