TerraPDF Documentation

Master PDF generation with our comprehensive guides and API reference.

Getting Started

New to TerraPDF? Start here for installation and your first PDF.

📚 Full Getting Started Guide

Installation, setup, namespaces, page configuration, and your first "Hello World" PDF. Complete walkthrough with code examples.

Read the Guide →

Core Documentation

In-depth guides covering every aspect of TerraPDF:

🔐 Encryption & Security

AES-128 PDF encryption, user and owner passwords, and permission flags for printing, copying, editing, forms, accessibility, and assembly.

Read →

📈 Vector Graphics

Canvas API for lines, rectangles, rounded rectangles, circles, ellipses, arbitrary paths, polygons, grids, charts, and diagrams.

Read →

À Unicode & Encoding

WinAnsiEncoding coverage, Windows-1252 specials, Latin-1 characters, safe ranges, and glyph-width behavior.

Read →

📝 Text & Spans

Styling, bold, italic, underline, strikethrough, font size, colors, line height, multi-span text, page numbers.

Read →

📐 Layout

Column, Row, and Table layouts, spacing, alignment, and responsive design patterns.

Read →

🎨 Decorators

Margins, padding, backgrounds, borders, rounded corners, per-edge borders, lines, page breaks.

Read →

đŸ–ŧī¸ Images

Embed PNG and JPEG images, sizing, alignment, and positioning.

Read →

📑 Table of Contents

Automatic TOC generation from H1-H6, hierarchical numbering, internal links.

Read →

🔗 Bookmarks

PDF bookmarks/outlines with hierarchical nesting for document navigation.

Read →

â„šī¸ Metadata

Set document properties: Title, Author, Subject, Keywords, Creator.

Read →

🎨 Colors

Material Design palette reference, color constants, hex colour support.

Read →

📏 Page Sizes & Units

All standard page sizes (A0-A6, Letter, Legal, Tabloid) and unit conversions.

Read →

🧩 Components & Templates

Create reusable IComponent and IDocument implementations.

Read →

â†”ī¸ Row & Column Layout

Deep dive into Row/Column layouts with diagrams and advanced patterns.

Read →

Project Resources

📖 README

Project overview, quick examples, API summary.

Read →

📋 Changelog

Version history and release notes for all TerraPDF releases.

Read →

🤝 Contributing

Guidelines for contributing, coding standards, and PR process.

Read →

🔐 Security

Security policy and responsible disclosure process.

Read →

Can't find what you're looking for?

Check the complete documentation or open an issue.