Expand description
Rendering pipeline for rpdfium — a faithful Rust port of PDFium.
This crate provides the rendering pipeline that converts a DisplayTree
(built by rpdfium-page) into a pixel bitmap:
rpdfium-page: Vec<Operator> → DisplayTree (interpretation)
rpdfium-render: DisplayTree → Bitmap (rendering — this crate)Re-exports§
pub use annotation_render::AnnotationOverlay;pub use annotation_render::render_with_annotations;pub use cfx_defaultrenderdevice::TinySkiaBackend;pub use cfx_psrenderer::PsRenderBackend;pub use cfx_psrenderer::PsSurface;pub use cfx_renderdevice::render;pub use cfx_renderdevice::render_tiled;pub use cfx_renderdevice::render_tiled_with_images;pub use cfx_renderdevice::render_with_images;pub use color_convert::RgbaColor;pub use error::RenderError;pub use image::DecodedImage;pub use image::DecodedImageFormat;pub use image::ImageDecoder;pub use page_transform::compute_page_transform;pub use render_defines::ColorScheme;pub use render_defines::RenderConfig;pub use render_defines::RenderProgress;pub use renderdevicedriver_iface::RenderBackend;pub use stroke::StrokeStyle;
Modules§
- annotation_
render - Annotation rendering support.
- cfx_
cmyk_ to_ srgb - Adobe CMYK to sRGB conversion using a precomputed 4D lookup table.
- cfx_
defaultrenderdevice - tiny-skia implementation of the
RenderBackendtrait. - cfx_
glyphcache - Rasterized glyph cache — caches pre-rendered glyph bitmaps for fast text rendering at common sizes.
- cfx_
psrenderer - PostScript Level 2/3 rendering backend.
- cfx_
renderdevice - Public rendering API.
- color_
convert - Color space conversion from PDF color values to device RGBA.
- error
- Error types for the rendering pipeline.
- image
- Decoded image types and the image decoder trait.
- page_
transform - Page coordinate transformation from PDF space to device pixels.
- render_
defines - Render configuration for controlling output dimensions and background.
- render_
shading - Shading (gradient) rendering.
- renderdevicedriver_
iface - Render backend trait defining the interface for 2D rendering engines.
- renderer
- Display tree renderer that bridges
DisplayVisitortoRenderBackend. - stroke
- Stroke style conversion from PDF path styles.
- type3_
cache - Cache for Type 3 glyph outlines.
- type3_
glyph_ map - Per-glyph data for Type 3 font rendering.