How fullbleed-engine/fullbleed-official works
Fullbleed is a deterministic HTML/CSS-to-PDF engine with Python and Rust APIs, plus a Python CLI and authoring components. The principal workflow accepts document markup and styles, lays them out, produces PDF bytes, and can generate previews; the CLI adds project, variable-data, and print-profile workflows. Accessibility auditing and component authoring are major supporting capabilities. The graph reflects README claims and source-index references; many runtime internals were not sampled, so uncertain implementation links are omitted.
Main entry points: canvas.rs Page drawing · __init__.py Python API · pdf.rs PDF generation · cli.py Python CLI
Components 23
Document authoring
- HTML and CSS input
- Python UI components
python/fullbleed/ui/core.py - Component accessibility
python/fullbleed/ui/accessibility.py
Rendering engine
- HTML parsing
src/html_dom.rs - CSS processing
src/css_native.rs - Layout and flow
src/flowable.rs - Page drawing
src/canvas.rs - Table semantics
src/table_semantics.rs - Image decoding
src/image_native.rs - Font parsing
src/sfnt.rs
PDF and previews
- PDF generation
src/pdf.rs - PDF links
src/pdf_links.rs - Raster previews
src/raster.rs - In-memory preview
src/authoring.rs
Accessibility
- Accessibility engine
python/fullbleed/accessibility/engine.py - PDF audit
python/fullbleed/audit_prototype.py - Audit contract
crates/fullbleed_audit_contract/src/lib.rs
APIs and CLI
- Python API
python/fullbleed/__init__.py - Python ABI dispatch
src/python/abi_exports.rs - Rust API
src/lib.rs - Python CLI
python/fullbleed_cli/cli.py
Other components
- Document author
- Optional JS and .NET packages
Connections 26
- Document author → HTML and CSS input: provides markup
- Document author → Python UI components: authors with
- HTML and CSS input → Python API: renders via
- Python API → Python ABI dispatch: binds through
- Python ABI dispatch → CSS processing: dispatches operations
src/python/abi_exports.rs - Python UI components → Component accessibility: uses
python/fullbleed/ui/accessibility.py - Component accessibility → Python UI components: uses primitives
python/fullbleed/ui/accessibility.py - Rust API → HTML and CSS input: renders markup
- HTML and CSS input → HTML parsing: parsed by
- HTML and CSS input → CSS processing: styles processed
- Layout and flow → Page drawing: feeds drawing
src/canvas.rs - Page drawing → Layout and flow: uses flowables
src/canvas.rs - Page drawing → Table semantics: uses semantics
src/canvas.rs - Page drawing → PDF links: uses link handling
src/canvas.rs - Image decoding → PDF generation: supports PDF assets
- Font parsing → PDF generation: supports font handling
- PDF generation → Raster previews: previews output
- In-memory preview → Page drawing: uses drawing
src/authoring.rs - In-memory preview → PDF generation: uses PDF generation
src/authoring.rs - Accessibility engine → Python API: uses engine API
python/fullbleed/accessibility/engine.py - PDF audit → Python API: uses engine API
python/fullbleed/audit_prototype.py - PDF audit → Audit contract: uses contract
- Python CLI → Python API: renders documents
python/fullbleed_cli/cli.py - Python CLI → Accessibility engine: offers accessibility workflows
- Document author → Python CLI: runs commands
- Optional JS and .NET packages → Rust API: integrate optionally