How to generate pdfs without selectable text?

Is it possible to not have the output PDF have selectable text, i.e. only the images of the actual text?

I realize I could use convert from ImageMagick to convert a PDF to png and back to PDF, but I was wondering if there was a typst flag.

I think using an external tool is the way to go. Typst doesn’t have a setting for this, there is an open feature request for it.

You can at least save some work by getting the PNG files directly from Typst with typst compile --format png.