Skip to content

Features Overview

Explore the full capabilities of QuestPDF. A mature, production-ready toolkit designed to handle every aspect of document generation, from versatile layouts to real-time developer tooling.

Important Concepts

Global Settings - Library-wide configuration for caching, debugging, font glyph validation, and font discovery paths. Fine-tune performance and development experience.

Output Types - Generate PDF, XPS, SVG, or raster images (PNG, JPEG, WEBP). Save to file, stream, or byte array for flexible integration.

Document Metadata - Set PDF properties like title, author, subject, keywords, and timestamps. Improve document organization and searchability.

Document Settings - Configure PDF/A archival and PDF/UA accessibility compliance. Control compression, image quality, DPI, and content direction.

Accessibility - Generate inclusive PDFs with PDF/UA compliance and tagged content. Enable screen reader support with proper semantic structure for all users.

Length Units - Use points (default), inches, centimeters, millimeters, meters, or feet. Specify units directly in API methods for intuitive sizing.

Predefined Colors - Full Google Material Design color palette included. HEX, alpha channel, and shorthand formats supported with convenient color helpers.

Positional Elements

Width - Horizontal size constraints: exact, minimum, and maximum values. Relative (percentage) or absolute units.

Height - Vertical size constraints: exact, minimum, and maximum values. Relative (percentage) or absolute units.

Alignment - Positions child within available space: center, top, bottom, left, right, and corner combinations.

Padding - Add breathing room around content with uniform or per-side spacing. Supports all length units for precise layout control.

Aspect Ratio - Maintains width-to-height proportion. Child content scales or clips to fit the constrained area.

Rotate - Rotation by 90° increments or arbitrary angles. Content spins around its center point.

Scale - Proportional resizing (larger or smaller). Uniform or independent horizontal/vertical factors.

Scale to Fit - Automatic scaling to fit available space. Preserves aspect ratio while maximizing size.

Translate - Shifts content position without affecting layout flow. Creates overlapping or offset effects.

Flip - Mirrors content horizontally, vertically, or both axes. Creates reflection effects.

Unconstrained - Removes parent size limits, giving children infinite available space. Reveals natural content size.

Extend - Expands child to fill all available space horizontally, vertically, or both directions.

Shrink - Reduces child to minimum required size. Prevents stretching when parent offers excess space.

Z-Index - Stacking order for overlapping elements in Layers. Higher values render in front of lower values.