Examples

Every demonstration in this documentation, gathered in one place. Each is rendered by xhtml2pdf while these pages are built, and each is explained by the page it links to.

Quickstart

The smallest document that produces a PDF.

Working with HTML

Pages, frames and static content, over several pages.

Reference

The layout features this page describes, a page each.

HTML API

The CSS properties and selectors this page lists.

Working with fonts

The base-14 faces and their aliases, CJK, and RTL.

Graphs in canvas

Each chart type the canvas understands.

How To Use Watermarks

A background image and a background PDF.

Encryption and signing

Encrypted, with printing and modification withheld. The user password is empty, so it opens without one – an owner password alone restricts what a reader may do.

Advanced usage

Relative references resolved through a link_callback, as this page describes – these very pages build it with one.