Skip to content

Tutorial

A seven-chapter jump-start. Each chapter builds on the last, taking you from the primitives every document is made of through to standards-compliant, accessible, encrypted output.

This tutorial is meant to be read in order: concepts introduced early (sections, the styling cascade, the fluent helpers) are assumed later. If you only want a single task done, the how-to guides are the faster path; if you want the why behind the model, read Concepts alongside.

Before you start, make sure you’ve installed the packages and produced the hello-world PDF.

#ChapterWhat you’ll learn
1Building blocksDocument → Section → Block → Inline; adding paragraphs and headings; saving a PDF
2Styling & typographyThe Style fluent API: fonts, colors, alignment, decorations, spacing, and where styling lives
3Tables, lists, imagesStructured content: tables, ordered/unordered lists, and block & inline images
4Headers, footers, page layoutSections as page-setup boundaries; page size, margins, columns, headers/footers, page breaks
5Forms & interactivityHyperlinks and AcroForm fields
6Security: encryption & signaturesPasswords, permissions, AES encryption, and digital signatures
7PDF/A & accessibilityConformance, tagged PDF, language, and accessible output

Every code block is complete enough to compile in spirit: using directives appear the first time they’re needed in a chapter. Most snippets end in a SavePdf(...) call so you can run them and open the result. The matching runnable projects live in the examples gallery.

Start with 1. Building blocks.