fullbleed 2.5.6__tar.gz → 2.5.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fullbleed-2.5.6 → fullbleed-2.5.7}/Cargo.lock +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.7}/Cargo.toml +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.7}/PKG-INFO +46 -7
- {fullbleed-2.5.6 → fullbleed-2.5.7}/README.md +45 -6
- {fullbleed-2.5.6 → fullbleed-2.5.7}/fullbleed-agent-contract.json +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.7}/llms.txt +1 -1
- {fullbleed-2.5.6 → fullbleed-2.5.7}/pyproject.toml +1 -1
- fullbleed-2.5.7/src/font_subset/cmap.rs +329 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/font_subset.rs +160 -4
- {fullbleed-2.5.6 → fullbleed-2.5.7}/COPYRIGHT +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/FONT_LICENSE_AUDIT.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/FONT_LICENSE_AUDIT.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/LICENSE +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/LICENSING.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/THIRD_PARTY_LICENSES.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/build.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/build_backend/fullbleed_build_backend.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/Cargo.lock +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/Cargo.toml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/LICENSE +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/README.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/specs/fullbleed.audit_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/specs/section508_html_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/specs/wcag20aa_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/src/json.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/src/lib.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/crates/fullbleed_audit_contract/src/sha256.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/docs/specs/fullbleed.a11y.verify.v1.schema.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/docs/specs/fullbleed.audit_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/docs/specs/fullbleed.pmr.v1.schema.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/docs/specs/section508_html_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/docs/specs/wcag20aa_registry.v1.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/__main__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/_abi.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/accessibility/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/accessibility/engine.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/accessibility/runtime.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/accessibility/types.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/audit_prototype.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/audit_section508.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/audit_wcag.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/accessibility.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/_core.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/agency_letter.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/court_motion_form.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/declaration_form.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/instruction_sheet.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/investment_portfolio_report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/marriage_record.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/profiles.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/recorded_plat.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/redaction_request_form.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/cav/warranty_deed.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/core.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/primitives.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed/ui/style.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/bootstrap.min.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/fonts/Inter-Variable.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/fonts/NotoSans-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/fonts/NotoSansMath-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/fonts/NotoSansSymbols-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/fonts/NotoSansSymbols2-Regular.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_assets/icons/bootstrap-icons.svg +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/__main__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/agent.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/agent_acceptance.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/agent_contract.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/assets.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/cache.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/cli.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/finalize.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/mcp.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/AGENTS.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/COMPLIANCE.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/SCAFFOLDING.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/body.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/fb_ui.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/footer.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/header.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/primitives.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/styles/body.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/styles/footer.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/styles/header.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/components/styles/primitives.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/styles/report.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/init/styles/tokens.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/accessible/README.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/accessible/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/accessible/output/.gitkeep +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/accessible/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/accessible/styles/report.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/accessible/vendor/fonts/Inter-Variable.ttf +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/invoice/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/invoice/output/.gitkeep +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/invoice/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/invoice/templates/invoice.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/invoice/templates/invoice.html +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/COMPLIANCE.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/README.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/SCAFFOLDING.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/assets/brand-mark.svg +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/assets/reference-pattern.svg +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/__init__.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/appendix.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/architecture.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/cover.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/data_pages.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/fb_ui.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/primitives.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/appendix.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/architecture.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/cover.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/data.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/primitives.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/styles/visuals.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/components/visuals.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/data/reference.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/styles/report.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/reference/styles/tokens.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/statement/output/.gitignore +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/statement/output/.gitkeep +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/statement/report.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/statement/templates/statement.css +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/scaffold_templates/new/statement/templates/statement.html +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/python/fullbleed_cli/watch.py +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/skills/fullbleed/SKILL.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/skills/fullbleed/agents/openai.yaml +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/skills/fullbleed/references/compliance.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/skills/fullbleed/references/selection.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/skills/fullbleed/references/workflows.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/assets.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/authoring.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/base14_metrics.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/base14_metrics_data.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/base64.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/canvas.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/chart.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/chart_document.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/css_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/css_queries.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/debug.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/doc_context.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/doc_template.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/document_metadata.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/error.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/finalize.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/flate_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/flowable.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/font.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/frame.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/glyph_report.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_dom.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_entities.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_entities_0.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_entities_1.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_entities_2.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_entities_3.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_entities_4.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/html_entities_5.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/icc.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/image_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/jit.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/jpeg_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/lib.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/math.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/metrics.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/native_shape.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/page_data.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/page_template.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/parallel.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_encodings.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_identity.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_print_contract.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_profile.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_raster/forms.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_raster/shading/radial_bands.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_raster/shading/tests.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_raster/shading.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_raster.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_table.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_vt.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdf_vt_inspect.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/pdfinspect.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/perf.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/plan.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/python/abi_exports.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/python/pdf_vt.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/python.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/python_abi.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/raster.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/raster_native.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/sfnt.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/sfnt_cff.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/sfnt_outline.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/spill.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/style.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/svg.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/table_header_tests.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/table_semantics.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/text_shape.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/types.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/unicode_data.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/src/xml.rs +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Courier-Bold.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Courier-BoldOblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Courier-Oblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Courier.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Helvetica-Bold.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Helvetica-BoldOblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Helvetica-Oblique.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Helvetica.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/MustRead.html +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Symbol.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Times-Bold.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Times-BoldItalic.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Times-Italic.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/Times-Roman.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/ZapfDingbats.afm +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/agl-LICENSE.md +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/agl-glyphlist.txt +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/agl-zapfdingbats.txt +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/data/base14/sources.json +0 -0
- {fullbleed-2.5.6 → fullbleed-2.5.7}/tools/generate_base14_metrics.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fullbleed
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.7
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: License :: OSI Approved :: MIT License
|
|
6
6
|
Classifier: Operating System :: MacOS
|
|
@@ -44,11 +44,11 @@ Project-URL: Repository, https://github.com/fullbleed-engine/fullbleed-official
|
|
|
44
44
|
<!-- SPDX-License-Identifier: MIT -->
|
|
45
45
|
# Fullbleed PDF Engine
|
|
46
46
|
|
|
47
|
-
**Create PDFs from
|
|
47
|
+
**Create PDFs from HTML and CSS in Python, Rust, Node.js, and C#. MIT licensed.**
|
|
48
48
|
|
|
49
|
-
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine
|
|
49
|
+
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine. Use the native Rust API, the Python package, or the optional Node.js and .NET integrations. The Python wheel includes the engine, fonts, and CLI with no required third-party Python packages or system PDF stack. The Node package includes the WebAssembly engine and fonts; the .NET package includes native libraries for in-process rendering.
|
|
50
50
|
|
|
51
|
-
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
51
|
+
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [crates.io](https://crates.io/crates/fullbleed) · [npm](https://www.npmjs.com/package/fullbleed) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
52
52
|
|
|
53
53
|
<p>
|
|
54
54
|
<a href="https://docs.fullbleed.dev/assets/showcase/invoice.pdf"><img src="https://docs.fullbleed.dev/assets/showcase/invoice-1.png" width="48%" alt="Northstar Studio invoice rendered by Fullbleed, with serif typography and forest-green tables"></a>
|
|
@@ -57,10 +57,25 @@ Build invoices, reports, statements, and variable-data print jobs with a determi
|
|
|
57
57
|
|
|
58
58
|
Actual Fullbleed output. Open either preview for its PDF, or [explore all four designs with complete HTML/CSS, data, and licensed fonts](https://docs.fullbleed.dev/examples/).
|
|
59
59
|
|
|
60
|
+
## Choose your language
|
|
61
|
+
|
|
62
|
+
| Language | Install | Start building |
|
|
63
|
+
| --- | --- | --- |
|
|
64
|
+
| Python | `python -m pip install fullbleed` | [Python quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) |
|
|
65
|
+
| Rust | `cargo add fullbleed` | [Native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
66
|
+
| Node.js / TypeScript | `npm install fullbleed` | [Node quickstart](https://docs.fullbleed.dev/getting-started/node/) · [Next.js PDF download](https://docs.fullbleed.dev/guides/nextjs-pdf/) |
|
|
67
|
+
| C# / .NET | `dotnet add package FullBleed.DotNet --version 0.1.2` | [C# quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
68
|
+
|
|
69
|
+
The Node integration is independently versioned and covers ordinary PDF generation.
|
|
70
|
+
The independently versioned .NET package targets .NET 8, with native rendering, compiled bindings, and previews. Its separate CLI adapter requires the Python CLI.
|
|
71
|
+
The Python package provides the complete CLI, including compiled variable-data jobs and print profiles; the Rust guide covers the native API.
|
|
72
|
+
|
|
60
73
|
## Your first PDF
|
|
61
74
|
|
|
62
75
|
Start in the [HTML/CSS playground](https://docs.fullbleed.dev/playground/) to edit a designed invoice or report and download a real PDF. It runs locally in your browser with no account or document upload. You can also use the [Python notebook in Colab](https://colab.research.google.com/github/fullbleed-engine/fullbleed-official/blob/master/examples/notebooks/first_invoice.ipynb), or start with a local script:
|
|
63
76
|
|
|
77
|
+
### Python
|
|
78
|
+
|
|
64
79
|
Python 3.10–3.14 on Windows, macOS, or Linux:
|
|
65
80
|
|
|
66
81
|
```bash
|
|
@@ -81,9 +96,32 @@ Path("invoice.pdf").write_bytes(pdf)
|
|
|
81
96
|
|
|
82
97
|
Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) adds fonts, previews, and a complete project. The runnable source is in [`examples/quickstart/hello.py`](examples/quickstart/hello.py).
|
|
83
98
|
|
|
84
|
-
|
|
99
|
+
### Node.js
|
|
100
|
+
|
|
101
|
+
Use Node.js 22 or newer. Run `npm install fullbleed`, save this as `invoice.mjs`, then run `node invoice.mjs`:
|
|
102
|
+
|
|
103
|
+
```javascript
|
|
104
|
+
import { writeFile } from 'node:fs/promises';
|
|
105
|
+
import { renderPdf } from 'fullbleed';
|
|
106
|
+
|
|
107
|
+
const result = await renderPdf({
|
|
108
|
+
html: '<h1>Invoice INV-1042</h1><p>Consulting: USD 1,200.00</p>',
|
|
109
|
+
css: '@page { size: A4; margin: 20mm } h1 { color: #175c52 }',
|
|
110
|
+
previewDpi: 96,
|
|
111
|
+
});
|
|
112
|
+
await writeFile('invoice.pdf', result.pdf);
|
|
113
|
+
await writeFile('invoice.png', result.previews[0]);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Open `invoice.pdf` or its PNG preview. The [Node.js quickstart](https://docs.fullbleed.dev/getting-started/node/) includes a downloadable designed invoice project. The separate [Node package](https://github.com/fullbleed-engine/fullbleed-node) supports ESM, CommonJS, and TypeScript. For an application route, use the [Next.js starter](https://docs.fullbleed.dev/guides/nextjs-pdf/).
|
|
117
|
+
|
|
118
|
+
### Rust
|
|
119
|
+
|
|
120
|
+
Start with the [native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/). The [`fullbleed` crate](https://crates.io/crates/fullbleed) exposes `FullBleed::builder()` and `render_to_buffer(...)`, with no Python requirement. The guide includes runnable invoice and report examples with explicit fonts and PNG previews, plus the [Rust API reference](https://docs.rs/fullbleed/2.5.6/fullbleed/).
|
|
121
|
+
|
|
122
|
+
### C# and .NET
|
|
85
123
|
|
|
86
|
-
|
|
124
|
+
Install [`FullBleed.DotNet`](https://www.nuget.org/packages/FullBleed.DotNet/0.1.2) in a .NET 8 project and follow the [C# quickstart](https://docs.fullbleed.dev/getting-started/dotnet/). The guide includes a runnable invoice with explicit fonts and HTML/CSS source. Native rendering runs inside the .NET process on Windows x64, Linux x64, Intel macOS, and Apple Silicon macOS, without a Python or browser runtime.
|
|
87
125
|
|
|
88
126
|
## Choose your starting point
|
|
89
127
|
|
|
@@ -92,6 +130,7 @@ Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/
|
|
|
92
130
|
| Distinctive invoices, reports, notices, and statements | [Designed showcase with fonts and source](examples/design_showcase) |
|
|
93
131
|
| A native Rust application | [Rust quickstart and runnable examples](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
94
132
|
| A Node.js or TypeScript application | [Node quickstart and designed invoice project](https://docs.fullbleed.dev/getting-started/node/) |
|
|
133
|
+
| A C# or .NET application | [NuGet quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
95
134
|
| An invoice from JSON | [Complete, checked example](examples/agent_workflows) |
|
|
96
135
|
| Automatic rebuilds while editing HTML/CSS (2.5.0+) | [Watch-mode invoice example](examples/render_watch) |
|
|
97
136
|
| Catch PDF changes in pull requests | [Standalone project with a reviewed baseline and CI workflow](examples/pdf_regression) |
|
|
@@ -273,7 +312,7 @@ python -m pip install fullbleed
|
|
|
273
312
|
From a local wheel:
|
|
274
313
|
|
|
275
314
|
```bash
|
|
276
|
-
python -m pip install C:\path\to\fullbleed-2.5.
|
|
315
|
+
python -m pip install C:\path\to\fullbleed-2.5.7-cp310-abi3-win_amd64.whl
|
|
277
316
|
```
|
|
278
317
|
|
|
279
318
|
From a source checkout with Rust installed, no Python build package is needed:
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<!-- SPDX-License-Identifier: MIT -->
|
|
2
2
|
# Fullbleed PDF Engine
|
|
3
3
|
|
|
4
|
-
**Create PDFs from
|
|
4
|
+
**Create PDFs from HTML and CSS in Python, Rust, Node.js, and C#. MIT licensed.**
|
|
5
5
|
|
|
6
|
-
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine
|
|
6
|
+
Build invoices, reports, statements, and variable-data print jobs with a deterministic Rust engine. Use the native Rust API, the Python package, or the optional Node.js and .NET integrations. The Python wheel includes the engine, fonts, and CLI with no required third-party Python packages or system PDF stack. The Node package includes the WebAssembly engine and fonts; the .NET package includes native libraries for in-process rendering.
|
|
7
7
|
|
|
8
|
-
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
8
|
+
[Try in your browser](https://docs.fullbleed.dev/playground/) · [Documentation](https://docs.fullbleed.dev/) · [Examples](https://docs.fullbleed.dev/examples/) · [PyPI](https://pypi.org/project/fullbleed/) · [crates.io](https://crates.io/crates/fullbleed) · [npm](https://www.npmjs.com/package/fullbleed) · [Release notes](https://github.com/fullbleed-engine/fullbleed-official/releases) · [MIT license](LICENSE)
|
|
9
9
|
|
|
10
10
|
<p>
|
|
11
11
|
<a href="https://docs.fullbleed.dev/assets/showcase/invoice.pdf"><img src="https://docs.fullbleed.dev/assets/showcase/invoice-1.png" width="48%" alt="Northstar Studio invoice rendered by Fullbleed, with serif typography and forest-green tables"></a>
|
|
@@ -14,10 +14,25 @@ Build invoices, reports, statements, and variable-data print jobs with a determi
|
|
|
14
14
|
|
|
15
15
|
Actual Fullbleed output. Open either preview for its PDF, or [explore all four designs with complete HTML/CSS, data, and licensed fonts](https://docs.fullbleed.dev/examples/).
|
|
16
16
|
|
|
17
|
+
## Choose your language
|
|
18
|
+
|
|
19
|
+
| Language | Install | Start building |
|
|
20
|
+
| --- | --- | --- |
|
|
21
|
+
| Python | `python -m pip install fullbleed` | [Python quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) |
|
|
22
|
+
| Rust | `cargo add fullbleed` | [Native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
23
|
+
| Node.js / TypeScript | `npm install fullbleed` | [Node quickstart](https://docs.fullbleed.dev/getting-started/node/) · [Next.js PDF download](https://docs.fullbleed.dev/guides/nextjs-pdf/) |
|
|
24
|
+
| C# / .NET | `dotnet add package FullBleed.DotNet --version 0.1.2` | [C# quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
25
|
+
|
|
26
|
+
The Node integration is independently versioned and covers ordinary PDF generation.
|
|
27
|
+
The independently versioned .NET package targets .NET 8, with native rendering, compiled bindings, and previews. Its separate CLI adapter requires the Python CLI.
|
|
28
|
+
The Python package provides the complete CLI, including compiled variable-data jobs and print profiles; the Rust guide covers the native API.
|
|
29
|
+
|
|
17
30
|
## Your first PDF
|
|
18
31
|
|
|
19
32
|
Start in the [HTML/CSS playground](https://docs.fullbleed.dev/playground/) to edit a designed invoice or report and download a real PDF. It runs locally in your browser with no account or document upload. You can also use the [Python notebook in Colab](https://colab.research.google.com/github/fullbleed-engine/fullbleed-official/blob/master/examples/notebooks/first_invoice.ipynb), or start with a local script:
|
|
20
33
|
|
|
34
|
+
### Python
|
|
35
|
+
|
|
21
36
|
Python 3.10–3.14 on Windows, macOS, or Linux:
|
|
22
37
|
|
|
23
38
|
```bash
|
|
@@ -38,9 +53,32 @@ Path("invoice.pdf").write_bytes(pdf)
|
|
|
38
53
|
|
|
39
54
|
Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/quickstart/) adds fonts, previews, and a complete project. The runnable source is in [`examples/quickstart/hello.py`](examples/quickstart/hello.py).
|
|
40
55
|
|
|
41
|
-
|
|
56
|
+
### Node.js
|
|
57
|
+
|
|
58
|
+
Use Node.js 22 or newer. Run `npm install fullbleed`, save this as `invoice.mjs`, then run `node invoice.mjs`:
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
import { writeFile } from 'node:fs/promises';
|
|
62
|
+
import { renderPdf } from 'fullbleed';
|
|
63
|
+
|
|
64
|
+
const result = await renderPdf({
|
|
65
|
+
html: '<h1>Invoice INV-1042</h1><p>Consulting: USD 1,200.00</p>',
|
|
66
|
+
css: '@page { size: A4; margin: 20mm } h1 { color: #175c52 }',
|
|
67
|
+
previewDpi: 96,
|
|
68
|
+
});
|
|
69
|
+
await writeFile('invoice.pdf', result.pdf);
|
|
70
|
+
await writeFile('invoice.png', result.previews[0]);
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Open `invoice.pdf` or its PNG preview. The [Node.js quickstart](https://docs.fullbleed.dev/getting-started/node/) includes a downloadable designed invoice project. The separate [Node package](https://github.com/fullbleed-engine/fullbleed-node) supports ESM, CommonJS, and TypeScript. For an application route, use the [Next.js starter](https://docs.fullbleed.dev/guides/nextjs-pdf/).
|
|
74
|
+
|
|
75
|
+
### Rust
|
|
76
|
+
|
|
77
|
+
Start with the [native Rust quickstart](https://docs.fullbleed.dev/getting-started/rust/). The [`fullbleed` crate](https://crates.io/crates/fullbleed) exposes `FullBleed::builder()` and `render_to_buffer(...)`, with no Python requirement. The guide includes runnable invoice and report examples with explicit fonts and PNG previews, plus the [Rust API reference](https://docs.rs/fullbleed/2.5.6/fullbleed/).
|
|
78
|
+
|
|
79
|
+
### C# and .NET
|
|
42
80
|
|
|
43
|
-
|
|
81
|
+
Install [`FullBleed.DotNet`](https://www.nuget.org/packages/FullBleed.DotNet/0.1.2) in a .NET 8 project and follow the [C# quickstart](https://docs.fullbleed.dev/getting-started/dotnet/). The guide includes a runnable invoice with explicit fonts and HTML/CSS source. Native rendering runs inside the .NET process on Windows x64, Linux x64, Intel macOS, and Apple Silicon macOS, without a Python or browser runtime.
|
|
44
82
|
|
|
45
83
|
## Choose your starting point
|
|
46
84
|
|
|
@@ -49,6 +87,7 @@ Open `invoice.pdf`. The [quickstart](https://docs.fullbleed.dev/getting-started/
|
|
|
49
87
|
| Distinctive invoices, reports, notices, and statements | [Designed showcase with fonts and source](examples/design_showcase) |
|
|
50
88
|
| A native Rust application | [Rust quickstart and runnable examples](https://docs.fullbleed.dev/getting-started/rust/) |
|
|
51
89
|
| A Node.js or TypeScript application | [Node quickstart and designed invoice project](https://docs.fullbleed.dev/getting-started/node/) |
|
|
90
|
+
| A C# or .NET application | [NuGet quickstart and designed invoice](https://docs.fullbleed.dev/getting-started/dotnet/) |
|
|
52
91
|
| An invoice from JSON | [Complete, checked example](examples/agent_workflows) |
|
|
53
92
|
| Automatic rebuilds while editing HTML/CSS (2.5.0+) | [Watch-mode invoice example](examples/render_watch) |
|
|
54
93
|
| Catch PDF changes in pull requests | [Standalone project with a reviewed baseline and CI workflow](examples/pdf_regression) |
|
|
@@ -230,7 +269,7 @@ python -m pip install fullbleed
|
|
|
230
269
|
From a local wheel:
|
|
231
270
|
|
|
232
271
|
```bash
|
|
233
|
-
python -m pip install C:\path\to\fullbleed-2.5.
|
|
272
|
+
python -m pip install C:\path\to\fullbleed-2.5.7-cp310-abi3-win_amd64.whl
|
|
234
273
|
```
|
|
235
274
|
|
|
236
275
|
From a source checkout with Rust installed, no Python build package is needed:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Fullbleed PDF Engine
|
|
2
2
|
|
|
3
|
-
> Fullbleed 2.5.
|
|
3
|
+
> Fullbleed 2.5.7 is a deterministic, self-contained document-generation runtime for Python and Rust. It turns structured data plus static HTML/CSS into validated PDF documents without a browser.
|
|
4
4
|
|
|
5
5
|
The installed runtime is authoritative. Do not infer its API from this file or from remembered release knowledge. Start with:
|
|
6
6
|
|
|
@@ -5,7 +5,7 @@ backend-path = ["build_backend"]
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "fullbleed"
|
|
8
|
-
version = "2.5.
|
|
8
|
+
version = "2.5.7"
|
|
9
9
|
description = "Deterministic Python PDF engine for reports, invoices, accessible documents, print-ready output, and compiled VDP"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.10"
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
//! Prune common character maps without renumbering glyphs or changing encoding records.
|
|
2
|
+
//!
|
|
3
|
+
//! Other formats retain their original subtable bytes. Malformed input or a larger replacement
|
|
4
|
+
//! falls back to the source cmap, just as unsupported outlines retain the full font program.
|
|
5
|
+
|
|
6
|
+
use super::{read_u16, read_u32, write_u16, write_u32};
|
|
7
|
+
use std::collections::{BTreeMap, BTreeSet};
|
|
8
|
+
|
|
9
|
+
pub(super) fn subset(source: &[u8], keep: &BTreeSet<u16>) -> Option<Vec<u8>> {
|
|
10
|
+
if read_u16(source, 0)? != 0 {
|
|
11
|
+
return None;
|
|
12
|
+
}
|
|
13
|
+
let count = usize::from(read_u16(source, 2)?);
|
|
14
|
+
let header_size = 4usize.checked_add(count.checked_mul(8)?)?;
|
|
15
|
+
let mut output = source.get(..header_size)?.to_vec();
|
|
16
|
+
let mut offsets = BTreeMap::new();
|
|
17
|
+
for index in 0..count {
|
|
18
|
+
let offset = usize::try_from(read_u32(source, 4 + index * 8 + 4)?).ok()?;
|
|
19
|
+
let new_offset = if let Some(offset) = offsets.get(&offset) {
|
|
20
|
+
*offset
|
|
21
|
+
} else {
|
|
22
|
+
let tail = source.get(offset..)?;
|
|
23
|
+
let format = read_u16(tail, 0)?;
|
|
24
|
+
let length = match format {
|
|
25
|
+
0 | 2 | 4 | 6 => usize::from(read_u16(tail, 2)?),
|
|
26
|
+
8 | 10 | 12 | 13 => usize::try_from(read_u32(tail, 4)?).ok()?,
|
|
27
|
+
14 => usize::try_from(read_u32(tail, 2)?).ok()?,
|
|
28
|
+
_ => return None,
|
|
29
|
+
};
|
|
30
|
+
let original = tail.get(..length)?;
|
|
31
|
+
let replacement = match format {
|
|
32
|
+
4 => subset_format4(original, keep),
|
|
33
|
+
12 => subset_format12(original, keep),
|
|
34
|
+
_ => None,
|
|
35
|
+
};
|
|
36
|
+
let bytes = replacement
|
|
37
|
+
.as_deref()
|
|
38
|
+
.filter(|bytes| bytes.len() < original.len())
|
|
39
|
+
.unwrap_or(original);
|
|
40
|
+
if output.len().checked_add(bytes.len())? > source.len() {
|
|
41
|
+
return None;
|
|
42
|
+
}
|
|
43
|
+
let new_offset = u32::try_from(output.len()).ok()?;
|
|
44
|
+
output.extend_from_slice(bytes);
|
|
45
|
+
offsets.insert(offset, new_offset);
|
|
46
|
+
new_offset
|
|
47
|
+
};
|
|
48
|
+
write_u32(&mut output, 4 + index * 8 + 4, new_offset)?;
|
|
49
|
+
}
|
|
50
|
+
(output.len() < source.len()).then_some(output)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
fn subset_format4(source: &[u8], keep: &BTreeSet<u16>) -> Option<Vec<u8>> {
|
|
54
|
+
let count_x2 = read_u16(source, 6)?;
|
|
55
|
+
if count_x2 == 0 || count_x2 % 2 != 0 {
|
|
56
|
+
return None;
|
|
57
|
+
}
|
|
58
|
+
let count = usize::from(count_x2 / 2);
|
|
59
|
+
let starts = 16 + count * 2;
|
|
60
|
+
let deltas = starts + count * 2;
|
|
61
|
+
let ranges = deltas + count * 2;
|
|
62
|
+
source.get(..ranges + count * 2)?;
|
|
63
|
+
let mut segments: Vec<(u16, u16, u16)> = Vec::new();
|
|
64
|
+
let mut previous_end = None;
|
|
65
|
+
for index in 0..count {
|
|
66
|
+
let start = read_u16(source, starts + index * 2)?;
|
|
67
|
+
let end = read_u16(source, 14 + index * 2)?;
|
|
68
|
+
if start > end || previous_end.is_some_and(|prior| start <= prior) {
|
|
69
|
+
return None;
|
|
70
|
+
}
|
|
71
|
+
previous_end = Some(end);
|
|
72
|
+
let delta = read_u16(source, deltas + index * 2)?;
|
|
73
|
+
let range_word = ranges + index * 2;
|
|
74
|
+
let range = usize::from(read_u16(source, range_word)?);
|
|
75
|
+
for code in start..=end {
|
|
76
|
+
let glyph = if range == 0 {
|
|
77
|
+
code.wrapping_add(delta)
|
|
78
|
+
} else {
|
|
79
|
+
let glyph = read_u16(source, range_word + range + usize::from(code - start) * 2)?;
|
|
80
|
+
if glyph == 0 {
|
|
81
|
+
0
|
|
82
|
+
} else {
|
|
83
|
+
glyph.wrapping_add(delta)
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
if glyph == 0 || !keep.contains(&glyph) {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
let delta = glyph.wrapping_sub(code);
|
|
90
|
+
if let Some(last) = segments
|
|
91
|
+
.last_mut()
|
|
92
|
+
.filter(|last| last.1.checked_add(1) == Some(code) && last.2 == delta)
|
|
93
|
+
{
|
|
94
|
+
last.1 = code;
|
|
95
|
+
} else {
|
|
96
|
+
segments.push((code, code, delta));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if !segments.last().is_some_and(|last| last.1 == u16::MAX) {
|
|
101
|
+
segments.push((u16::MAX, u16::MAX, 1));
|
|
102
|
+
}
|
|
103
|
+
let count = u16::try_from(segments.len()).ok()?;
|
|
104
|
+
let length = 16usize.checked_add(usize::from(count).checked_mul(8)?)?;
|
|
105
|
+
let mut output = vec![0; usize::from(u16::try_from(length).ok()?)];
|
|
106
|
+
write_u16(&mut output, 0, 4)?;
|
|
107
|
+
write_u16(&mut output, 2, u16::try_from(length).ok()?)?;
|
|
108
|
+
write_u16(&mut output, 4, read_u16(source, 4)?)?;
|
|
109
|
+
write_u16(&mut output, 6, count.checked_mul(2)?)?;
|
|
110
|
+
let mut power = 1u16;
|
|
111
|
+
let mut selector = 0u16;
|
|
112
|
+
while power <= count / 2 {
|
|
113
|
+
power *= 2;
|
|
114
|
+
selector += 1;
|
|
115
|
+
}
|
|
116
|
+
write_u16(&mut output, 8, power * 2)?;
|
|
117
|
+
write_u16(&mut output, 10, selector)?;
|
|
118
|
+
write_u16(&mut output, 12, count * 2 - power * 2)?;
|
|
119
|
+
for (index, (start, end, delta)) in segments.iter().enumerate() {
|
|
120
|
+
write_u16(&mut output, 14 + index * 2, *end)?;
|
|
121
|
+
write_u16(&mut output, 16 + usize::from(count) * 2 + index * 2, *start)?;
|
|
122
|
+
write_u16(&mut output, 16 + usize::from(count) * 4 + index * 2, *delta)?;
|
|
123
|
+
}
|
|
124
|
+
Some(output)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
fn subset_format12(source: &[u8], keep: &BTreeSet<u16>) -> Option<Vec<u8>> {
|
|
128
|
+
let count = usize::try_from(read_u32(source, 12)?).ok()?;
|
|
129
|
+
source.get(..16usize.checked_add(count.checked_mul(12)?)?)?;
|
|
130
|
+
let mut groups: Vec<(u32, u32, u32)> = Vec::new();
|
|
131
|
+
let mut previous_end = None;
|
|
132
|
+
for index in 0..count {
|
|
133
|
+
let start = read_u32(source, 16 + index * 12)?;
|
|
134
|
+
let end = read_u32(source, 20 + index * 12)?;
|
|
135
|
+
let first = read_u32(source, 24 + index * 12)?;
|
|
136
|
+
if start > end || end > 0x10ffff || previous_end.is_some_and(|prior| start <= prior) {
|
|
137
|
+
return None;
|
|
138
|
+
}
|
|
139
|
+
previous_end = Some(end);
|
|
140
|
+
let last = first.checked_add(end - start)?;
|
|
141
|
+
if first > u32::from(u16::MAX) {
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
for glyph in keep.range((first as u16)..=(last.min(u32::from(u16::MAX)) as u16)) {
|
|
145
|
+
if *glyph == 0 {
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
let code = start.checked_add(u32::from(*glyph) - first)?;
|
|
149
|
+
if let Some(last) = groups.last_mut().filter(|last| {
|
|
150
|
+
last.1.checked_add(1) == Some(code)
|
|
151
|
+
&& last.2.checked_add(code - last.0) == Some(u32::from(*glyph))
|
|
152
|
+
}) {
|
|
153
|
+
last.1 = code;
|
|
154
|
+
} else {
|
|
155
|
+
groups.push((code, code, u32::from(*glyph)));
|
|
156
|
+
if groups.len() > count {
|
|
157
|
+
return None;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
let mut output = source.get(..16)?.to_vec();
|
|
163
|
+
for (start, end, glyph) in &groups {
|
|
164
|
+
output.extend_from_slice(&start.to_be_bytes());
|
|
165
|
+
output.extend_from_slice(&end.to_be_bytes());
|
|
166
|
+
output.extend_from_slice(&glyph.to_be_bytes());
|
|
167
|
+
}
|
|
168
|
+
let length = u32::try_from(output.len()).ok()?;
|
|
169
|
+
write_u32(&mut output, 4, length)?;
|
|
170
|
+
write_u32(&mut output, 12, u32::try_from(groups.len()).ok()?)?;
|
|
171
|
+
Some(output)
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
#[cfg(test)]
|
|
175
|
+
mod tests {
|
|
176
|
+
use super::*;
|
|
177
|
+
|
|
178
|
+
fn array_cmap4() -> Vec<u8> {
|
|
179
|
+
// A/B/C use a glyph array; U+0100/0101 use a delta. The final segment is .notdef.
|
|
180
|
+
[
|
|
181
|
+
4u16, 46, 0, 6, 4, 1, 2, 0x43, 0x101, 0xffff, 0, 0x41, 0x100, 0xffff, 0, 1, 1, 6, 0, 0,
|
|
182
|
+
3, 7, 9,
|
|
183
|
+
]
|
|
184
|
+
.into_iter()
|
|
185
|
+
.flat_map(u16::to_be_bytes)
|
|
186
|
+
.collect()
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#[test]
|
|
190
|
+
fn format4_preserves_array_and_delta_mappings_and_the_terminal_segment() {
|
|
191
|
+
let result = subset_format4(&array_cmap4(), &BTreeSet::from([0, 3, 9, 0x101])).unwrap();
|
|
192
|
+
let expected: Vec<u8> = [
|
|
193
|
+
4u16, 48, 0, 8, 8, 2, 0, 0x41, 0x43, 0x100, 0xffff, 0, 0x41, 0x43, 0x100, 0xffff,
|
|
194
|
+
0xffc2, 0xffc6, 1, 1, 0, 0, 0, 0,
|
|
195
|
+
]
|
|
196
|
+
.into_iter()
|
|
197
|
+
.flat_map(u16::to_be_bytes)
|
|
198
|
+
.collect();
|
|
199
|
+
assert_eq!(result, expected);
|
|
200
|
+
// A replacement with more segment records must not inflate an existing cmap.
|
|
201
|
+
let mut source = vec![0, 0, 0, 1, 0, 3, 0, 1, 0, 0, 0, 12];
|
|
202
|
+
source.extend_from_slice(&array_cmap4());
|
|
203
|
+
assert!(subset(&source, &BTreeSet::from([0, 3, 9, 0x101])).is_none());
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
#[test]
|
|
207
|
+
fn format12_keeps_non_bmp_glyphs_and_merges_consecutive_survivors() {
|
|
208
|
+
let source: Vec<u8> = [
|
|
209
|
+
0x000c0000u32,
|
|
210
|
+
52,
|
|
211
|
+
0,
|
|
212
|
+
3,
|
|
213
|
+
0x41,
|
|
214
|
+
0x43,
|
|
215
|
+
3,
|
|
216
|
+
0x1f600,
|
|
217
|
+
0x1f605,
|
|
218
|
+
40,
|
|
219
|
+
0x10ffff,
|
|
220
|
+
0x10ffff,
|
|
221
|
+
70,
|
|
222
|
+
]
|
|
223
|
+
.into_iter()
|
|
224
|
+
.flat_map(u32::to_be_bytes)
|
|
225
|
+
.collect();
|
|
226
|
+
let result = subset_format12(&source, &BTreeSet::from([0, 4, 42, 43, 70])).unwrap();
|
|
227
|
+
let expected: Vec<u8> = [
|
|
228
|
+
0x000c0000u32,
|
|
229
|
+
52,
|
|
230
|
+
0,
|
|
231
|
+
3,
|
|
232
|
+
0x42,
|
|
233
|
+
0x42,
|
|
234
|
+
4,
|
|
235
|
+
0x1f602,
|
|
236
|
+
0x1f603,
|
|
237
|
+
42,
|
|
238
|
+
0x10ffff,
|
|
239
|
+
0x10ffff,
|
|
240
|
+
70,
|
|
241
|
+
]
|
|
242
|
+
.into_iter()
|
|
243
|
+
.flat_map(u32::to_be_bytes)
|
|
244
|
+
.collect();
|
|
245
|
+
assert_eq!(result, expected);
|
|
246
|
+
assert_eq!(
|
|
247
|
+
subset_format12(&source, &BTreeSet::from([0]))
|
|
248
|
+
.unwrap()
|
|
249
|
+
.len(),
|
|
250
|
+
16
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
#[test]
|
|
255
|
+
fn expanding_format12_rewrite_declines_before_allocating_a_larger_map() {
|
|
256
|
+
let source: Vec<u8> = [0x000c0000u32, 28, 0, 1, 0x41, 0x45, 3]
|
|
257
|
+
.into_iter()
|
|
258
|
+
.flat_map(u32::to_be_bytes)
|
|
259
|
+
.collect();
|
|
260
|
+
assert!(subset_format12(&source, &BTreeSet::from([3, 5, 7])).is_none());
|
|
261
|
+
let outside_unicode: Vec<u8> = [0x000c0000u32, 28, 0, 1, 0, 0xffffffff, 0]
|
|
262
|
+
.into_iter()
|
|
263
|
+
.flat_map(u32::to_be_bytes)
|
|
264
|
+
.collect();
|
|
265
|
+
assert!(subset_format12(&outside_unicode, &BTreeSet::from([1])).is_none());
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
#[test]
|
|
269
|
+
fn duplicate_encoding_records_share_a_compacted_subtable() {
|
|
270
|
+
let mut source = vec![0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 20, 0, 3, 0, 1, 0, 0, 0, 20];
|
|
271
|
+
source.extend_from_slice(&array_cmap4());
|
|
272
|
+
let result = subset(&source, &BTreeSet::from([3])).unwrap();
|
|
273
|
+
assert_eq!(read_u32(&result, 8), Some(20));
|
|
274
|
+
assert_eq!(read_u32(&result, 16), Some(20));
|
|
275
|
+
assert_eq!(&result[..20], &source[..20]);
|
|
276
|
+
assert_eq!(result.len(), 20 + 32);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
#[test]
|
|
280
|
+
fn legacy_encoding_subtable_is_copied_byte_for_byte() {
|
|
281
|
+
let mut source = vec![0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 20, 0, 1, 0, 0, 0, 0, 0, 66];
|
|
282
|
+
source.extend_from_slice(&array_cmap4());
|
|
283
|
+
let legacy: Vec<u8> = [6u16, 16, 18, 0x41, 3, 3, 7, 9]
|
|
284
|
+
.into_iter()
|
|
285
|
+
.flat_map(u16::to_be_bytes)
|
|
286
|
+
.collect();
|
|
287
|
+
source.extend_from_slice(&legacy);
|
|
288
|
+
let result = subset(&source, &BTreeSet::from([3])).unwrap();
|
|
289
|
+
assert_eq!(read_u32(&result, 16), Some(52));
|
|
290
|
+
assert_eq!(&result[52..], legacy.as_slice());
|
|
291
|
+
assert_eq!(&result[12..16], &source[12..16]);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
#[test]
|
|
295
|
+
fn format4_array_delta_wraps_and_missing_glyph_stays_missing() {
|
|
296
|
+
let mut source = array_cmap4();
|
|
297
|
+
write_u16(&mut source, 28, 0xfffe).unwrap();
|
|
298
|
+
write_u16(&mut source, 42, 0).unwrap();
|
|
299
|
+
let result = subset_format4(&source, &BTreeSet::from([0, 1, 7])).unwrap();
|
|
300
|
+
// A -> 3 - 2 = 1, B remains missing, C -> 9 - 2 = 7.
|
|
301
|
+
assert_eq!(read_u16(&result, 6), Some(6));
|
|
302
|
+
assert_eq!(
|
|
303
|
+
[read_u16(&result, 14), read_u16(&result, 16)],
|
|
304
|
+
[Some(0x41), Some(0x43)]
|
|
305
|
+
);
|
|
306
|
+
assert_eq!(
|
|
307
|
+
[read_u16(&result, 28), read_u16(&result, 30)],
|
|
308
|
+
[Some(0xffc0), Some(0xffc4)]
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
#[test]
|
|
313
|
+
fn malformed_character_maps_decline_compaction_without_panicking() {
|
|
314
|
+
let valid = array_cmap4();
|
|
315
|
+
for end in 0..valid.len() {
|
|
316
|
+
// Some prefixes omit only unused glyphs; those may still have a valid retained map.
|
|
317
|
+
let _ = subset_format4(&valid[..end], &BTreeSet::from([3, 7, 9]));
|
|
318
|
+
}
|
|
319
|
+
let mut overlapping = valid.clone();
|
|
320
|
+
write_u16(&mut overlapping, 24, 0x42).unwrap();
|
|
321
|
+
assert!(subset_format4(&overlapping, &BTreeSet::from([3])).is_none());
|
|
322
|
+
assert!(subset(&[0, 0, 0, 1], &BTreeSet::new()).is_none());
|
|
323
|
+
let overflow: Vec<u8> = [0x000c0000u32, 28, 0, 1, 0, u32::MAX, 1]
|
|
324
|
+
.into_iter()
|
|
325
|
+
.flat_map(u32::to_be_bytes)
|
|
326
|
+
.collect();
|
|
327
|
+
assert!(subset_format12(&overflow, &BTreeSet::from([3])).is_none());
|
|
328
|
+
}
|
|
329
|
+
}
|