examples/

directory
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT

Directories

Path Synopsis
Package main demonstrates adding pages explicitly, so content starts on a fresh page.
Package main demonstrates adding pages explicitly, so content starts on a fresh page.
Package main demonstrates rows that take their height from the content inside them.
Package main demonstrates rows that take their height from the content inside them.
Package main demonstrates drawing a full-page background image behind the content.
Package main demonstrates drawing a full-page background image behind the content.
Package main demonstrates placing Code 128 barcodes across a grid of columns.
Package main demonstrates placing Code 128 barcodes across a grid of columns.
Package main demonstrates a complete invoice: header, line-item table, and totals.
Package main demonstrates a complete invoice: header, line-item table, and totals.
Package main demonstrates PDF outline bookmarks: text components with an Outline prop appear in the PDF viewer's bookmark sidebar.
Package main demonstrates PDF outline bookmarks: text components with an Outline prop appear in the PDF viewer's bookmark sidebar.
Package main demonstrates styling individual cells with fills, borders, and padding.
Package main demonstrates styling individual cells with fills, borders, and padding.
Package main demonstrates checkbox components with and without labels.
Package main demonstrates checkbox components with and without labels.
Package main demonstrates turning content-stream compression on and off.
Package main demonstrates turning content-stream compression on and off.
Package main demonstrates a page sized in millimetres instead of a named page size.
Package main demonstrates a page sized in millimetres instead of a named page size.
Package main demonstrates registering a TrueType font and drawing UTF-8 text with it.
Package main demonstrates registering a TrueType font and drawing UTF-8 text with it.
Package main demonstrates building a document from a custom page definition.
Package main demonstrates building a document from a custom page definition.
Package main demonstrates placing Data Matrix codes across a grid of columns.
Package main demonstrates placing Data Matrix codes across a grid of columns.
Package main demonstrates keeping a row on one page instead of letting it split.
Package main demonstrates keeping a row on one page instead of letting it split.
Package main demonstrates a footer that repeats at the bottom of every page.
Package main demonstrates a footer that repeats at the bottom of every page.
Package main demonstrates a header that repeats at the top of every page.
Package main demonstrates a header that repeats at the top of every page.
Package main demonstrates placing images across a grid of columns.
Package main demonstrates placing images across a grid of columns.
Package main demonstrates horizontal rules, including dashed and coloured styles.
Package main demonstrates horizontal rules, including dashed and coloured styles.
Package main demonstrates rendering a slice of values as a table with a header row.
Package main demonstrates rendering a slice of values as a table with a header row.
Package main demonstrates low-memory mode, which writes pages out as they are built.
Package main demonstrates low-memory mode, which writes pages out as they are built.
Package main demonstrates setting the page margins.
Package main demonstrates setting the page margins.
Package main demonstrates changing how many grid units a row spans.
Package main demonstrates changing how many grid units a row spans.
Package main demonstrates merging a generated document with another PDF.
Package main demonstrates merging a generated document with another PDF.
Package main demonstrates setting document metadata such as title, author, and subject.
Package main demonstrates setting document metadata such as title, author, and subject.
Package main demonstrates landscape orientation.
Package main demonstrates landscape orientation.
Package main demonstrates page numbering in a footer.
Package main demonstrates page numbering in a footer.
Package main demonstrates generating page chunks concurrently.
Package main demonstrates generating page chunks concurrently.
Package main demonstrates password protection and permission flags.
Package main demonstrates password protection and permission flags.
Package main demonstrates placing QR codes across a grid of columns.
Package main demonstrates placing QR codes across a grid of columns.
Package main demonstrates signature lines across a grid of columns.
Package main demonstrates signature lines across a grid of columns.
Package main demonstrates the smallest document: one row with one line of text.
Package main demonstrates the smallest document: one row with one line of text.
Package main demonstrates text components across a grid of columns.
Package main demonstrates text components across a grid of columns.
Package main demonstrates the per-page text watermark: translucent diagonal text drawn under the content of every page.
Package main demonstrates the per-page text watermark: translucent diagonal text drawn under the content of every page.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL