pub async fn render_page_reporting_with<S: AsyncObjectSource>(
src: S,
page: &Page,
scale: f32,
opts: &RenderOptions,
) -> Result<(Pixmap, RenderReport)>Expand description
Renders a page like render_page_reporting against any object source,
awaiting whatever I/O the source needs — this is the asynchronous entry
point, and the synchronous ones above are this implementation over
pdfboss_core::Immediate, so the two APIs cannot render differently.
The source is taken by value and the page by reference, which is the
combination a consumer needs to spawn the result: the future is Send
over a source that is Send + Sync, and 'static as long as the borrow
of page is created inside the consumer’s own async move block, which
owns the page. See pdfboss_core::source’s “Signing a shared algorithm”.