typst_render

Function render

source
pub fn render(page: &Page, pixel_per_pt: f32) -> Pixmap
Expand description

Export a page into a raster image.

This renders the page at the given number of pixels per point and returns the resulting tiny-skia pixel buffer.