pub fn render_with_annotations(
tree: &DisplayTree,
annotations: &[AnnotationOverlay],
config: &RenderConfig,
decoder: Option<&dyn ImageDecoder>,
) -> Result<Bitmap, RenderError>Expand description
Render a display tree with annotation overlays.
After rendering the page content, each visible annotation’s appearance
stream display tree is rendered on top, positioned at the annotation’s
/Rect.