pub fn render_page(doc: &Document, page: &Page, scale: f32) -> Result<Pixmap>Expand description
Renders a page at scale onto a white background. The pixel size is
ceil(crop_w * scale) x ceil(crop_h * scale) (after /Rotate), and the
base transform maps the crop box to device space with a y-flip and the
page rotation applied.
Rendering is lenient: content pdfboss cannot read is skipped rather than
failing the render, so a page can come back blank without an error. Use
render_page_reporting to find out what was dropped.