Hi! First, thanks for Imprintor, I use it to print pdf, works great :)
I have a use case though where I'd like to render a Typst document to a raster image (PNG) rather than a PDF.
Today the public API is PDF-only
i.e. a typst_to_png / typst_to_png_file nif mirroring the PDF ones, with a scale/ppi option, exposed as Imprintor.compile_to_png/1 (and compile_to_png_file/2).
Would you be open to a PR adding this? Happy to implement it following the existing PDF code paths and conventions. Wanted to check interest before opening one.
Thanks!
Hi! First, thanks for Imprintor, I use it to print pdf, works great :)
I have a use case though where I'd like to render a Typst document to a raster image (PNG) rather than a PDF.
Today the public API is PDF-only
i.e. a
typst_to_png/typst_to_png_filenif mirroring the PDF ones, with a scale/ppi option, exposed as Imprintor.compile_to_png/1 (and compile_to_png_file/2).Would you be open to a PR adding this? Happy to implement it following the existing PDF code paths and conventions. Wanted to check interest before opening one.
Thanks!