Skip to main content

Demos

The repository includes a demonstration app, SampleApp. Each demo builds one PDF and shows one feature. Click a preview to open the PDF, Source to read the code that made it, and the last link to read the guide for that feature.

Every PDF on this page is rebuilt from the current code each time the site is published.

To run the demos yourself, clone the repository and run these commands from its root:

dotnet run --project src/SampleApp -- list
dotnet run --project src/SampleApp -- run
dotnet run --project src/SampleApp -- run --example Fonts Text

list shows every demo and what it covers. run writes one PDF per demo into output/, and prints the source of each one first. Use --example to run only some demos, and --no-code to hide the source.

The first page of the Images demo

Images

Sizing, stretching, fitting, cropping and rotating one image.

The first page of the ImageFailures demo

ImageFailures

An image that cannot be read, and the event that says why.

The first page of the Gradients demo

Gradients

Radial and linear gradients, extended past their ends and transformed.

The first page of the Barcodes demo

Barcodes

Code 3 of 9, interleaved 2 of 5, OMR marks and an ECC200 data matrix.

The first page of the Footnotes demo

Footnotes

Notes at the foot of the page, and the four settings that shape them.

The first page of the Charts demo

Charts

All eight chart types, combination series, and the two routes into the engine.