Skip to main content

render_page_reporting

Function render_page_reporting 

Source
pub fn render_page_reporting(
    doc: &Document,
    page: &Page,
    scale: f32,
    opts: &RenderOptions,
) -> Result<(Pixmap, RenderReport)>
Expand description

Renders a page like render_page_with_options, additionally returning a RenderReport describing any content that had to be dropped or approximated. Use this when a silently blank page would be misleading.