Appearance
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.
Installation and Getting Started - Download, install, and integrate the Companion App with your project. Enjoy real-time hot-reload preview.
Precision Tools - Pixel-level inspection, coordinate picking, and distance measurement. Verify spacing, alignment, and positioning with precision.
Navigation Tools - Explore document structure, search content by phrase, and jump directly to source code in your IDE.
Runtime Exception Analysis - View detailed exception messages, stack traces, and source code context when errors occur during document generation.
Layout Issue Debugging - Diagnose layout problems with color-coded status indicators. Identify root causes with intelligent heuristics.
Merging Documents - Combine multiple PDF files into a single document. Merge entire documents or select specific pages from each source with full control.
Page Selection / Extraction - Select specific pages using flexible range syntax. Extract, reorder, reverse, or filter pages with powerful selection patterns.
Overlays / Underlays - Apply watermarks, headers, footers, or letterhead by layering PDF content. Configure which pages receive overlays with precise control.
Document Encryption - Secure PDFs with 40-bit, 128-bit, or 256-bit encryption. Set user/owner passwords and control permissions for printing, copying, and editing.
Document Decryption - Remove encryption and security restrictions from password-protected PDFs. Access content for further processing or distribution.
Document Linealization - Optimize PDFs for web delivery. Linearized files allow viewers to display content before the entire file downloads, improving user experience.
Files Attachments - Embed files directly within PDFs with full PDF/A compliance. Support for all embedded file relationships.
Extending XMP Metadata - Add custom XMP metadata to PDF/A documents. Essential for industry standards like ZUGFeRD invoices and other compliance requirements.
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.
Patterns and Practices - Best practices for clean, maintainable document code. Learn execution order, modular structure, local helpers, content styling, and extension methods.
Accessibility - Generate inclusive PDFs with PDF/UA compliance and tagged content. Enable screen reader support with proper semantic structure for all users.
Components - Build modular, reusable document blocks for cleaner architecture. Encapsulate layout patterns and maintain consistency across your entire codebase.
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.
Placeholders - Generate random text, colors, and images for rapid prototyping. Includes lorem ipsum, names, emails, dates, numbers, and gradient images.
Styled Containers - Enhance visual appearance of your content with decorative styling options.
Text - Rich text rendering with multiple formatting options. Automatic wrapping and seamless pagination across pages.
Image - Raster images (PNG, JPEG, WebP) and SVG vectors. Automatic aspect ratio, compression, resolution optimization, and shared image caching.
Line - Horizontal or vertical lines with configurable thickness and color. Useful as visual separators and dividers.
Placeholder - Gray rectangle with diagonal lines and optional label. Visualizes reserved space during layout prototyping.
Charts - Integration with charting libraries (ScottPlot, LiveCharts, Microcharts). Bar, line, pie, area charts as vector graphics.
Barcodes / QR Codes - Generate 1D barcodes and 2D QR codes. Integration guide with popular third-party libraries.
Maps - Embed static maps in your documents. Integration tutorial using Mapbox services.
Complex Graphics - Canvas-style drawing API for paths, shapes, bezier curves, and custom vector graphics. Fill and stroke operations.
SkiaSharp Integration - Direct SkiaSharp canvas access for shaders, gradients, image filters, blend modes, and advanced 2D graphics.
Page - Document foundation with size, margins, orientation, headers, footers, and watermarks. Continuous or paged content modes.
Table - Grid layout with rows and columns. Cell spanning, repeating headers/footers, auto-pagination, and precise cell styling.
Column - Vertical stacking of children with configurable spacing. Automatic pagination ensures content flows seamlessly across pages.
Row - Horizontal arrangement with flexible sizing options. Combine proportional, fixed, and auto-width items with configurable spacing.
Decoration - Persistent header and footer areas that repeat on every page. Main content flows between them with pagination.
List - Ordered (numbered) and unordered (bulleted) lists. Custom markers, nested levels, and automatic numbering.
Layers - Stacked content planes for backgrounds, main content, and foreground overlays. Watermarks and letterhead effects.
Inlined - Inline flow layout with automatic line wrapping. Elements arranged like words in a paragraph.
Multi Column - Newspaper-style columns where content flows from one column to the next, continuing across pages.
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.
Page Break - Forces subsequent content to begin on a new page. Immediate page transition.
Prevent Page Break - Keeps child content together on a single page. Moves entire block to next page if needed.
Ensure Space - Requires minimum vertical space before rendering. Jumps to next page if threshold not met.
Show Entire - Displays element fully on one page or skips to next page. No partial rendering or breaking.
Repeat - Duplicates content on every page of a multi-page section. Repeating decorations and patterns.
Show If - Conditional rendering based on boolean logic. Content appears or disappears based on runtime conditions.
Show Once - Renders content only on its first page occurrence. Hidden on subsequent pages of the same element.
Skip Once - Hides content on first page, visible on all subsequent pages. Inverse of Show Once.
Stop Paging - Prevents content from continuing to additional pages. Overflow content is truncated.
Section - Define named regions for navigation and location-aware page numbering. Build table of contents and cross-references with ease.
Hyperlink - Create interactive clickable areas linking to URLs, email addresses, or phone numbers. Seamless integration with PDF reader capabilities.
Lazy - Optimize memory for large documents with deferred content generation. Ideal for data-intensive reports and enterprise-scale document processing.
Default Text Style - Inherited text formatting (font, size, color) applied to all descendant text elements.
Content Direction - Left-to-right (LTR) or right-to-left (RTL) layout direction. Full RTL language and bidirectional text support.
Debug Area - Colored border and label overlay showing element boundaries. Visual debugging during development.
Debug Pointer - Named marker appearing in layout exception messages. Identifies problematic elements in error diagnostics.