Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,18 @@ jobs:
npm run render:fonts -- --package-root output/font-baseline-consumer/node_modules/fullbleed --out output/font-baseline
npm run verify:fonts -- --evidence-root output/font-baseline --allow-legacy-metadata
npm run render:fonts
npm run verify:fonts -- --baseline output/font-baseline --reviewed-layout test/fixtures/inline-layout-2.5.46.json
npm run verify:fonts -- --baseline output/font-baseline --reviewed-layout test/fixtures/inline-layout-2.5.48.json
- name: Verify installed custom font families against explicit faces
run: |
npm run render:families
npm run verify:families
- name: Verify page-margin aliases and the published fallback failure
run: |
npm install --prefix output/page-margin-baseline-consumer --ignore-scripts --no-audit --no-fund --save-exact fullbleed@0.9.0
node tools/render-page-margin-fonts.mjs --package-root output/page-margin-baseline-consumer/node_modules/fullbleed --out output/page-margin-baseline
python tools/verify-page-margin-fonts.py output/page-margin-baseline --negative-control
node tools/render-page-margin-fonts.mjs
python tools/verify-page-margin-fonts.py output/page-margin-fonts
- uses: actions/upload-artifact@v4
with:
name: node-engine
Expand Down Expand Up @@ -164,6 +171,9 @@ jobs:
output/font-baseline/
output/font-subsets/
output/font-families/
output/page-margin-fonts/
output/page-margin-baseline/
output/page-margin-baseline-consumer/package-lock.json
output/inline-wrapping/
output/standard-baseline-consumer/package-lock.json
output/standard-baseline/
Expand Down Expand Up @@ -232,9 +242,11 @@ jobs:
run: |
python -m pip install pypdf==6.19.0 pypdfium2==5.14.0 fonttools==4.65.0 pillow==12.3.0
npm run render:fonts
npm run verify:fonts -- --reviewed-layout test/fixtures/inline-layout-2.5.46.json
npm run verify:fonts -- --reviewed-layout test/fixtures/inline-layout-2.5.48.json
npm run render:families
npm run verify:families
node tools/render-page-margin-fonts.mjs
python tools/verify-page-margin-fonts.py output/page-margin-fonts
npm run render:inline
npm run verify:inline
npm run render:standard
Expand Down Expand Up @@ -270,6 +282,7 @@ jobs:
path: |
output/font-subsets/
output/font-families/
output/page-margin-fonts/
output/inline-wrapping/
output/standard-fonts/
output/engine-regressions/
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ no Python, Rust compiler, browser, or system fonts. MIT licensed.

Use `fullbleed` in Node.js, `fullbleed/browser` in a web application, or
[`fullbleed/cloudflare`](docs/cloudflare.md) inside a Cloudflare Worker.
Package **0.9.0** wraps the published **Fullbleed 2.5.46** engine.
Package **0.9.1** wraps the published **Fullbleed 2.5.48** engine.

[Try the browser playground](https://docs.fullbleed.dev/playground/) ·
[Documentation](https://docs.fullbleed.dev/getting-started/node/) ·
Expand Down Expand Up @@ -176,6 +176,12 @@ supported. Plain byte arrays continue to use the font's intrinsic family names.
Both forms are copied when the job is accepted and count toward the same asset
limit. A font file does not also need to be included in `assets`.

From 0.9.1, page headers and footers can use these same CSS aliases, including
fallback lists and inherited weights. Their typography inherits from `html`,
then `@page`, then the margin box. A font applied only to `body` does not
set the page-header font. Use `defaultStyles: false` when your document
should inherit its body font from `html`.

The WebAssembly engine sees an in-memory filesystem containing the supplied
inputs and bundled fonts. It does not fetch remote URLs or read application files.
Use the asset map or data URIs for document images. Render and review previews
Expand Down
4 changes: 2 additions & 2 deletions docs/browser.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generate PDFs in a browser

The `fullbleed/browser` entry in Fullbleed 0.9.0 renders static HTML/CSS in a
The `fullbleed/browser` entry in Fullbleed 0.9.1 renders static HTML/CSS in a
dedicated Web Worker. It uses the same pinned 2.5.46 engine and bundled fonts as
the Node entry. The result is a `Uint8Array`, suitable for a PDF `Blob`, plus
optional PNG previews. No PDF server or account is required.
Expand All @@ -21,7 +21,7 @@ Install the package in your web project, then copy its browser files into the
directory your application serves as static files:

```sh
npm install --save-exact fullbleed@0.9.0
npm install --save-exact fullbleed@0.9.1
npx fullbleed-browser-assets public/fullbleed
```

Expand Down
2 changes: 1 addition & 1 deletion docs/cloudflare.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local tests for normal, long, escaped and invalid invoices.
Use Node.js 22 or newer for your development tools:

```sh
npm install --save-exact fullbleed@0.9.0
npm install --save-exact fullbleed@0.9.1
npm install --save-dev --save-exact wrangler@4.151.3
```

Expand Down
6 changes: 3 additions & 3 deletions engine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "fullbleed-node-adapter"
version = "0.9.0"
version = "0.9.1"
edition = "2024"
license = "MIT"
publish = false

[dependencies]
fullbleed = { version = "=2.5.46", features = ["svg_raster"] }
fullbleed = { version = "=2.5.48", features = ["svg_raster"] }
serde_json = "=1.0.154"

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion examples/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"test": "node --test test/request.test.mjs",
"test:worker": "node test/worker.mjs"
},
"dependencies": { "fullbleed": "0.9.0" },
"dependencies": { "fullbleed": "0.9.1" },
"devDependencies": { "wrangler": "4.151.3" }
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fullbleed",
"version": "0.9.0",
"version": "0.9.1",
"description": "Generate PDFs from HTML/CSS, components or JSX in Node.js, browsers and Cloudflare Workers, with bundled fonts and PNG previews.",
"type": "module",
"main": "./src/index.cjs",
Expand Down Expand Up @@ -140,7 +140,7 @@
"access": "public"
},
"fullbleed": {
"engineVersion": "2.5.46"
"engineVersion": "2.5.48"
},
"devDependencies": {
"@types/node": "22.20.5",
Expand Down
94 changes: 94 additions & 0 deletions test/fixtures/inline-layout-2.5.48.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"schema": "fullbleed.reviewed_inline_layout.v1",
"engineVersion": "2.5.48",
"source": "https://crates.io/crates/fullbleed/2.5.48",
"reason": "Engine 2.5.48 must preserve the reviewed 2.5.46 PDF, preview and text expectations. The expected outputs are unchanged.",
"fonts": [
{
"name": "Inter-Variable.ttf",
"path": "fonts/Inter-Variable.ttf",
"bytes": 876576,
"sha256": "29160a80ff49ddcab2c97711247e08b1fab27a484a329ce8b813d820dc559031"
},
{
"name": "DMSerifDisplay-Regular.ttf",
"path": "fonts/DMSerifDisplay-Regular.ttf",
"bytes": 76580,
"sha256": "8cc3643535edf039aa5d95440a8542735e9197e4f4b8d9303e980fefbf5ab616"
},
{
"name": "DMSerifDisplay-Italic.ttf",
"path": "fonts/DMSerifDisplay-Italic.ttf",
"bytes": 71208,
"sha256": "df74c0ac387baeaeb0fe4f2324e1668e6a3ed8c09cd9796fe162c71753e19e45"
},
{
"name": "BebasNeue-Regular.ttf",
"path": "fonts/BebasNeue-Regular.ttf",
"bytes": 61400,
"sha256": "08e4623805102d819f58601e46e345648846075e363b2ceb23313c2d1c83ec73"
},
{
"name": "NotoSansMath-Regular.ttf",
"path": "fonts/NotoSansMath-Regular.ttf",
"bytes": 590904,
"sha256": "80b61fd613d3519197e64fff6f7e71fdc7f3e6526440ea4115b554ef7fd59af7"
}
],
"fixtures": {
"invoice": {
"htmlSha256": "195725eeeb32c521e19b47dbacbb55048bebb6df8566ab135cdc41fbf33fe57a",
"cssSha256": "cda22b39ab1f7a1eeac7cd76d162b05cd3568c2430c099123ba30a2fbd58a296",
"pages": 1,
"text": "Northstar\nStudio\nD E S I G N W I T H D I R E C T I O N\nB R A N D\nD I G I T A L\nE X P E R I E N C E S\nT H A T M A T T E R .\n42 Cedar Avenue\nPortland, OR 97205\nhello@example.invalid\nnorthstar.example.invalid\nINVOICE\nGOOD WORK.\nCLEAR DETAILS.\nLET'S MAKE\nWHAT'S NEXT.\nP R E P A R E D F O R\nMaple & Finch\nAttn. Avery Morgan\nPortland, Oregon\nT H E P R O J E C T\nAutumn launch\nBrand workshop, digital\ndesign & handoff\nI N V O I C E N S - 1 0 4 2\nIssued \u00b7 01 October 2026\nDue \u00b7 31 October 2026\nCurrency \u00b7 USD\nDESCRIPTION HOURS RATE AMOUNT\nDiscovery & brand workshop\nPositioning, priorities, and a clear creative direction\n8 $125.00 $1,000.00\nDigital design & implementation\nA cohesive visual system, from layout to launch\n6 $95.00 $570.00\nReview & studio handoff\nFinal refinements, documentation, and delivery\n2 $150.00 $300.00\nA little clarity.\nA lot of possibility.\nThank you for inviting us\nto help shape your next chapter.\nSubtotal $1,870.00\nTax \u00b7 0% in this sample $0.00\nT O T A L D U E \u00b7 U S D\n$1,870.00\nP A Y M E N T D E T A I L S\nReference NS-1042 with your payment.\nPayment instructions are supplied separately.\nA N O T E F R O M T H E S T U D I O\nQuestions about a line item?\nWrite to hello@example.invalid.\nNORTHSTAR STUDIO / INVOICE NS-1042 FICTIONAL SAMPLE \u00b7 01 / 01",
"pdfSha256": "3078d155f30536f5ad721f7be3c241cd78661ae41249131fc0fd65f37f23e408",
"previewsSha256": [
"72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7"
],
"pdfiumPixelSha256": [
"d71293741974bef9abffbdf5d88b0827b48fe6523f8d9baf46f46fe1000895a5"
]
},
"report": {
"htmlSha256": "46b0e975d43914c8b4492218feae09ea0ad684091a9f9ee3b18f66a87202e521",
"cssSha256": "519591ae75c239ec602324f008dd99108ebeae0b9306df7215fa5f0442905473",
"pages": 3,
"text": "Common Ground\nC O M M U N I T Y T R U S T\nP E O P L E\nP L A C E S\nP O S S I B I L I T I E S\nCOMMON\nGROUND\nStronger places.\nMore room\nfor everyone.\n2026\nC O M M U N I T Y R E V I E W\nA Y E A R\nI N C O M M O N\n0 2 / O U R R E A C H\nSmall actions,\nshared outcomes.\n0 3 / O U R R E S O U R C E S\nWhere the\nsupport goes.\nCOMMON GROUND / COMMUNITY REVIEW FICTIONAL DATA \u00b7 01 / 03Common Ground\n0 2 / O U R R E A C H\nA P L A C E T O B E G I N\nSmall actions.\nShared outcomes.\nAn open door, a working kitchen, a garden plot. This year, our fictional neighborhood\nprograms connected more people with practical spaces to learn, make, and belong.\n1,240\nhouseholds took part\nacross four neighborhoods\n4,860\nvolunteer hours\nshared across our programs\n12\ncommunity spaces\nkept open and active\nMore neighbors, each quarter.\nP A R T I C I P A T I N G H O U S E H O L D S\n420\n560\n790\n980\nQ1 Q2 Q3 Q4\nQuarterly participation counts; a household can participate in more than one quarter.\n\u201cBelonging starts\nwith somewhere\nto show up.\u201d\nO U R P R O G R A M P R I N C I P L E\nBuilt around daily life.\nEvening workshops, shared meals, and weekend garden\nsessions made participation easier for people with different\nschedules. The next step is a longer opening window at\neach neighborhood space.\nILLUSTRATIVE ANNUAL REVIEW / NOT AN ACTUAL ORGANIZATION 02 / 03Common Ground\n0 3 / O U R R E S O U R C E S\nF O L L O W T H E S U P P O R T\nGood intentions.\nClear allocations.\nA practical view of this fictional operating budget. Every category supports the same\naim: useful places, open to more people.\nPROGRAM AREA ALLOCATION SHARE\nNeighborhood spaces $168,000.00 40%\nLearning & workshops $126,000.00 30%\nShared meals & gardens $84,000.00 20%\nAccess & transport $42,000.00 10%\nT O T A L O P E R A T I N G A L L O C A T I O N \u00b7 U S D $420,000.00\nWhat we count.\nHouseholds are deduplicated within the annual program\nregister. Volunteer hours include recorded event and\nmaintenance time. Space counts refer to year-round\nlocations, not individual events.\nQuarterly counts show participation within each period and\nmust not be added to estimate unique annual reach.\nWhat comes next.\nExtend evening access. Improve step-free entrances.\nPublish a simple monthly view of program activity and\nspending.\nA shared tomorrow\nis built in the everyday.\nCOMMON GROUND / METHODS & ALLOCATIONS FICTIONAL DATA \u00b7 03 / 03",
"pdfSha256": "80fc4306db1898688d846cfea4fb1b4ef5bf07713fe9301662143619441205b5",
"previewsSha256": [
"33ee3398d59f6836368cdab0f3c725c3cf12cbf2f9f3a3ac6a6b168f6c1886f5",
"9e883a04ab32392aa87ef5931761285b8dc15f8fd642b4f9bbea582c044bcdbe",
"8c8bfdc01ef7a3c376fbe61a0736dbc5b65280b0781f0040c550e097e71a5dcd"
],
"pdfiumPixelSha256": [
"c7dc8db8fc08a78f74c4477629e0f68f3b34aa37b9b9eba46a977805933d3f03",
"50298b3a05370f4dcefedf47b121c1da74e48307e85fac695dfbc5c1207b100e",
"55c5468322b64ae2583439553a13057218c418d38c4fcbeb0e492ec98160961c"
]
}
},
"baselineSource": "https://crates.io/crates/fullbleed/2.5.24",
"previousReference": "inline-layout-2.5.41.json",
"previousReferenceSha256": "e6c796356e3b1360885ad3ea9c1ae27adda484f76cc6fee9c1f31fb7c9eae828",
"previousReview": {
"unchangedFixtures": [
"invoice",
"inter",
"dm-serif",
"dm-serif-italic",
"bebas-neue",
"math"
],
"reportPages": 3,
"changedGlyphsPerPage": [
0,
12,
12
],
"change": "Common Ground heading baseline: 0.75pt down on pages 2 and 3.",
"allContentPreserved": true,
"allGlyphsWithinPage": true,
"publicPythonCore": "2.5.34",
"publicPythonPdfSha256": "80fc4306db1898688d846cfea4fb1b4ef5bf07713fe9301662143619441205b5"
}
}
Loading
Loading