A little code. A finished page.
Make it your own.
Edit an example or open your own files. Runs on your device. Watch a short walkthrough ↗
Loading the examples…
Files and projects
Choose HTML/CSS, PNG, JPEG, SVG, TTF, or OTF files. Opening HTML starts a new document. Your files stay in this tab.
Use the paths below in your HTML or CSS. Assets stay available when switching examples and are included in Download project. Optional TXT license files are included too.
Preparing your first PDF…
Download project saves your source and assets in a ZIP you can reopen here. Opening a saved project replaces the current document and local assets.
Free. No account. Your source stays in this tab and is not uploaded. Download your project before leaving. The first render downloads the engine and bundled fonts.
Report a rendering problem. Opens a public GitHub form in a new tab. Use sample data; your document is not attached.
Try your own document¶
On smaller screens, use Edit source and PDF preview to switch views. Render PDF opens the preview; Ctrl/⌘ + Enter renders while keeping you in the editor. Switching views preserves your edits.
Expand Files and projects, then choose Open local files to select HTML, CSS, images, and fonts from your device. Opening HTML starts Your document and clears the separate stylesheet unless you select a CSS file at the same time. Opening CSS alone keeps the current HTML. Your edited examples remain in the Start with menu.
Use the displayed asset paths in your source. For example:
Give an imported font a convenient CSS family name:
@font-face { font-family: Brand; src: url("assets/brand.ttf"); }
html, body { font-family: Brand; }
@page {
@bottom-center { content: "Page " counter(page) " of " counter(pages); }
}
Page headers and footers inherit their font from html. Set a different family
on @page or an individual margin box to override it. A font set only on body
does not set the page font. These aliases also work in the Python and Node.js
projects you download. See font registration
for fallback families and weight selection. A later or more specific font-family rule can override a CSS-variable value; if the winning variable is missing and has no usable fallback, the element inherits its parent’s font.
Assets stay available when switching examples. Remove an asset before adding a
replacement with the same filename. The demo accepts up to 16 assets, 8 MiB
per asset, and 20 MiB combined, plus 200 KB of HTML/CSS. Use filenames
without folders; update references such as images/logo.png to the displayed
assets/logo.png. Remote files and linked external stylesheets are not fetched.
Download project includes the source, selected assets, and their hashes for Python or Node.js. Optional TXT license files are included as assets. Files stay in this tab until you download them; closing the tab clears them.
Let an invoice grow¶
The Northstar invoice flows onto additional pages when you add line items.
Its table headings repeat, the footer shows the actual page count, and the total
stays with the payment details. Edit the rows inside <tbody> in the HTML panel.
The sample amounts are plain text, so update the subtotal and total when you change
the rows. For calculated amounts from application data, use the
Python invoice starter.
Page size, margins, and footer text are in the stylesheet's @page rule.
The .closing block groups the totals and payment details. These same HTML/CSS
files are included when you download a Python or Node.js project.
Save a project and come back later¶
Choose Python or Node.js, then Download project. Keep the ZIP unchanged. On your next visit, choose Open saved project and select that ZIP to restore your HTML, CSS, custom assets, and project language. Choose Render PDF to preview it, or keep editing. This works without an account or document upload.
Supported browsers ask before leaving or reloading when you have unsaved source edits or asset changes. Choose Stay to keep editing and download a project first. Downloading one example does not save edits in the others. Save HTML and Save CSS each save only that source file; a PDF download does not save the editable project. Resetting an example discards its source edits.
This browser prompt is a safeguard, not a backup. Some browsers, especially on mobile, can close a tab without showing it. Keep your project ZIP before leaving.
Opening a project replaces the current document and assets; download your current project first if you want to keep it. Invalid projects leave your current work intact. The browser accepts project ZIPs up to 24 MiB, with the same source and asset limits listed above. Larger exports remain usable with their local renderer.
The preview uses this playground’s engine and bundled fonts. If the saved engine version differs, the editor tells you before you render. To use the project’s original pinned version, follow the README inside its ZIP. Archived Python and JavaScript files are never run by the playground. For source edited after extraction, use Open local files instead of repackaging the ZIP.
Wrap long code lines¶
To keep indentation and authored line breaks while fitting long tokens on the page, add this to the CSS editor:
Use white-space: pre-line when you want to keep line breaks but collapse extra
spaces. A plain <pre> preserves its whitespace without wrapping. Wrapped code
can continue onto another page; this playground accepts up to six pages.
Keep building¶
Choose Python or Node.js under Project language, then Download project to keep your current HTML/CSS, bundled fonts and licenses, pinned dependencies, and a renderer in one ZIP. Extract it into a folder, open a terminal there, and run:
Open output/document.pdf; PNG previews are in output/preview/. Edit
input.html or style.css, then run the script again. The project uses Fullbleed
engine 2.5.51 to match this demo. The Node renderer preserves your CSS with
defaultStyles: false. The ZIP
is assembled on your device, using the source present when you click the button.
It does not upload your document.
The individual Save HTML and Save CSS links remain useful for an existing project. Download the bundled fonts and extract them beside those files; for the invoice example, run:
python -m pip install fullbleed
python -m fullbleed render --html fullbleed-invoice.html --css fullbleed-invoice.css --out invoice.pdf --asset fonts/Inter-Variable.ttf --asset fonts/DMSerifDisplay-Regular.ttf --asset fonts/DMSerifDisplay-Italic.ttf --asset fonts/BebasNeue-Regular.ttf
For the other examples, replace invoice in the input filenames with report
or notice. You can keep editing and add --watch to rebuild after each save.
Use Fullbleed in Python Use Fullbleed in Node.js Use Fullbleed in Rust Run the Python notebook CSS support
The playground uses the released Fullbleed 2.5.51 Rust engine, compiled to WebAssembly. Page previews are rendered from the same PDF you download, including the report's gradient chart fills. It accepts static HTML/CSS, with Inter, DM Serif Display, and Bebas Neue embedded fonts. JavaScript inside your document is not executed, and remote assets are not loaded. Open local images and fonts or use inline SVG for artwork.
Unembedded Helvetica, Times, and Courier variants also produce visible previews. The font-preview guide explains the bundled substitute fonts used for those faces.
This demo handles up to 6 pages and 200 KB of HTML/CSS, with a 30-second render limit. These are playground limits; the local Python, Node.js, and Rust packages support larger jobs. Sample organizations and data are fictional.
Playground source and verification · Build record · Native/WASI fixture checks · Project download checks · Node project checks · Radial-gradient checks · Release upgrade checks · Third-party licenses
Build this into your own web app: download the browser SDK starter, with editable templates and local PDF downloads.