Skip to content

Examples

Ready-to-run Node projects live in the repo under examples/.

Nebula uses native addons (sharp, @resvg/resvg-js), so these are not browser sandboxes. Use a local terminal, or CodeSandbox’s GitHub/Node import.

Multi-page account statement driven by a 50-row transaction table — repeating headers, stripes, and flex column widths (same shape as the library’s table test).

Open CodeSandbox — bank-statement
Browse examples/bank-statement
Download npx degit Ango-Jay/nebula-pdf-engine/examples/bank-statement bank-statement
Terminal window
cd bank-statement
npm install
npm start
# → output/statement.pdf

In CodeSandbox, cd examples/bank-statement first if the workspace root is the full repo, then npm install && npm start. Download the PDF from the file tree.

Narrow single-page receipt using contentWidth, stacked line items, and totals — good for labels and POS-style layouts.

Open CodeSandbox — receipt
Browse examples/receipt
Download npx degit Ango-Jay/nebula-pdf-engine/examples/receipt receipt
Terminal window
cd receipt
npm install
npm start
# → output/receipt.pdf
  • Each example ships an Inter font under fonts/ so generation works on Linux (CodeSandbox) without system Arial.
  • Depends on published nebula-pdf-engine from npm.
  • More detail: examples/README.md