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.
Bank statement
Section titled “Bank statement”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 |
cd bank-statementnpm installnpm start# → output/statement.pdfIn 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.
Receipt
Section titled “Receipt”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 |
cd receiptnpm installnpm 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-enginefrom npm. - More detail: examples/README.md