Skip to content

Releases

2026.9.2

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 12 Nov 16:35
  • Updated Skia to m158.
  • Fixed a rare issue where a Table with row spans could generate empty pages endlessly.
  • Changed the default value of Settings.EnableDetailedLayoutErrors to false, so layout errors are reported immediately. Finding the root cause of a layout error can be time-consuming and resource-intensive. Enable this setting during development to get detailed diagnostics.
  • Soft hyphens and zero-width spaces no longer appear as spaces in the PDF text layer, which improves screen reader output, text search, and copy-paste.
  • Increased the maximum number of font families in a fallback chain from 16 to 128.
  • Increased the maximum number of font features per text style from 16 to 32.
  • Improved the stability of the Column element. Spacing is now applied only between items that have height, so hidden items no longer leave empty gaps.
  • Fixed rare cases where PreventPageBreak and EnsureSpace could cause a layout exception or endless document generation.
  • Fixed SVG rendering of dashed lines, where an additional hairline was drawn between the dashes.
  • When the default port is occupied, ShowInCompanion now connects to the Companion App on the nearest available port.
  • Improved the reliability of launching and connecting to the Companion App (requires updating the Companion App to the newest version).
  • When a document is too complex for a responsive preview in the Companion App, the library now throws an exception that explains the problem.
  • Renamed the native files shipped with the library to follow the snake_case convention (for example, questpdf_skia and questpdf_qpdf). Deployment scripts that reference these files by name must be updated.

2026.9.1

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 25 Sep 15:18
  • Updated Skia to m154.
  • Updated qpdf to 12.4.1.
  • Fixed an issue where garbage collection could corrupt PDF tag attributes during concurrent PDF generation (found and fixed by @Lurtz7 in #1483),
  • Improved PDF/UA-1 compatibility when generating ZUGFeRD and Factur-X invoices.
  • Fixed an issue in the DocumentOperation API where DocumentAttachmentRelationship.Supplement was incorrectly mapped to /Alternative.
  • Improved handling of stream-writing exceptions during PDF generation.
  • The ShowInCompanion API now automatically starts the Companion App if it is not already running (requires Companion App 2026.9.0 or newer).
  • Improved exception messages related to Settings.ThrowOnMissingFontFamilies, Settings.ThrowOnMissingTextGlyphs, and Settings.UseSystemFonts.
  • Reduced connection time to the Companion App on Windows.
  • Added missing license files for dependencies.

2026.9.0

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 14 Sep 12:47

This release is dedicated to text handling improvements

QuestPDF 2026.9.0 improves font management to make document rendering more predictable across development machines, CI, containers, and cloud environments.

Fonts installed on the operating system vary between machines. A document that looks correct during development may use different fallback fonts, display placeholder glyphs, or lose text after deployment. To help catch these problems before a PDF reaches its recipient, QuestPDF now excludes system fonts by default and validates font availability and glyph coverage during document generation.

Upgrading to 2026.9.0

Deploy the required font files with your application and reference them by the family names stored in those files. Fonts in the application directory are registered automatically; you can also register them explicitly through FontManager. Use FontManager.GetRegisteredFonts() to inspect the available family names.

Please compare previous settings with the new defaults:

// previous behavior:
QuestPDF.Settings.UseSystemFonts = true;
QuestPDF.Settings.ThrowOnMissingFontFamilies = false;
QuestPDF.Settings.ThrowOnMissingTextGlyphs = false;
QuestPDF.Settings.EnableDetailedLayoutErrors = false;

// current behavior:
QuestPDF.Settings.UseSystemFonts = false;
QuestPDF.Settings.ThrowOnMissingFontFamilies = true;
QuestPDF.Settings.ThrowOnMissingTextGlyphs = true;
QuestPDF.Settings.EnableDetailedLayoutErrors = true;

Also review the deployment and API changes below. Renamed APIs remain available under their previous names, marked as obsolete with compiler warnings.

Covering additional languages

QuestPDF includes the bundled Lato font, which covers Latin, Greek, and Cyrillic scripts. For other scripts, such as Chinese, Japanese, Korean, Arabic, Hebrew, Thai, or emoji, we recommend additionally deploying the free, open-source Google Noto font family, registering it with FontManager, and configuring it as a font fallback in the default text style of the document.

// at application startup
FontManager.RegisterFontsFromDirectory("Fonts/Noto");

// in the document
Document.Create(document => 
{
    document.Page(page => 
    {
        page.DefaultTextStyle(style => style.FontFamily("Lato", "Noto Sans", "Noto Sans CJK SC", "Noto Emoji"));
    });
});

⚠️ Breaking changes

  • System fonts are no longer used by default. Settings.UseEnvironmentFonts has been renamed to Settings.UseSystemFonts and is now disabled by default. QuestPDF uses its bundled Lato fonts, fonts discovered through Settings.FontDiscoveryPath, and fonts registered through FontManager.

  • Unavailable font families now stop document generation. The new Settings.ThrowOnMissingFontFamilies flag is enabled by default. When document text references an unavailable font family, QuestPDF throws a DocumentDrawingException listing the missing families, registered fonts, and suggested solutions.

  • Missing text glyphs now stop document generation. Settings.CheckIfAllTextGlyphsAreAvailable has been renamed to Settings.ThrowOnMissingTextGlyphs and is now enabled by default, rather than only when a debugger is attached. If no available font can render a glyph, generation stops with an exception identifying the missing glyphs and the fonts involved.

  • The bundled Lato fonts are now distributed as a single compressed archive. The LatoFont folder has been replaced with QuestPDF.Fonts.Lato.br on .NET 5 and newer, and QuestPDF.Fonts.Lato.gz on .NET Standard 2.0 / .NET Framework. This reduces the library’s disk footprint by approximately 40%. Standard build and publish operations require no changes. Deployment scripts that explicitly copy the LatoFont folder must copy the archive instead.

Font management

  • Simplified font registration with FontManager.RegisterFontFromFile, RegisterFontFromBinaryData, RegisterFontFromStream, RegisterFontFromEmbeddedResource, and RegisterFontsFromDirectory. Font family names and attributes are read directly from the font files.

  • Font family matching is now case-insensitive: FontFamily("lato") and FontFamily("LATO") both select Lato. This applies to registered fonts, system fonts, and SVG text.

  • Added FontManager.GetRegisteredFonts() and FontManager.GetSystemFonts(). Both return FontInfo records describing the available typefaces, including family name, PostScript name, weight, and flags indicating whether a font is italic or variable. Use these methods to identify the family names accepted by TextStyle.FontFamily.

  • Fonts are now loaded when the first document is generated, rather than during type initialization. Configure font-related settings at application startup, before generating any documents.

  • Automatic font discovery now skips font files that cannot be loaded.

SVG improvements

  • SVG text can now use fonts registered through FontManager. System fonts are available only when Settings.UseSystemFonts is enabled.

  • Improved font-family parsing to support quoted and unquoted names and comma-separated fallback lists, such as font-family="'Open Sans', Lato". The first available family is selected. Previously, only the first entry was considered, and it required an exact match.

  • SVG text now falls back to Lato when none of the requested font families is available or no font-family is specified. This prevents text from disappearing because a font family is unavailable or unspecified.

  • Added support for the dominant-baseline attribute on text elements.

  • Fixed handling of the vertical offset specified by dy on tspan elements.

  • Fixed glyph positioning for text aligned using the text-anchor attribute.

  • Added basic support for the em and ex length units.

  • Changed the default font size for text without a font-size attribute from 24px to 16px, matching web browsers.

  • Fixed a layout failure when rendering SVG images with percentage dimensions and no viewBox.

Deprecations

  • Deprecated FontManager.RegisterFontWithCustomName. Use the font registration methods listed above and reference fonts by the family names stored in their files. Family names are matched case-insensitively.

  • Deprecated QuestPDF.Helpers.Fonts. Its constants reference fonts that may not be available in the target environment. Pass the family name of a deployed or registered font as a string instead.

Other improvements

  • Renamed SemanticHeader1–SemanticHeader6 to SemanticHeading1–SemanticHeading6, matching PDF/UA terminology.

  • Renamed Settings.EnableDebugging to Settings.EnableDetailedLayoutErrors and enabled it by default, rather than only when a debugger is attached. This setting has no performance cost for successfully rendered documents. When a layout error occurs, the DocumentLayoutException includes the likely location of the problem and relevant layout measurements. Consider disabling this setting if logged exception messages must not contain fragments of document content.

  • Image and font files loaded from disk are no longer memory-mapped. These files are no longer kept locked while the application runs, simplifying updates and deployments.

  • Removed startup Trace warnings about font and debugging configuration.

  • Fixed incorrect rendering of soft hyphens.

  • Companion App: Increased the HTTP request timeout from 5 to 10 seconds to improve reliability with large documents.

2026.8.0

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 24 Aug 17:34

🚀 This release is dedicated to performance, parallelism, and use of available resources. 🚀

Documents render faster, allocate a fraction of the memory they used to, and scale across all available CPU cores. No code changes are required — existing documents benefit simply by upgrading the package.

The numbers below were measured on a MacBook Pro M5 (18-core CPU), using the invoice document from the Getting Started tutorial, across various levels of parallelism, over a sample of 5,000 documents.

  • Reduced allocated memory amount and allocated object count by 85%.
  • Improved single-threaded performance by around 15%.
  • Substantially improved parallel scaling: throughput previously peaked at 4 threads and flattened beyond that, and now scales with available CPU cores — with around 4x better scaling.
  • Improved performance and scalability for text-heavy documents.
  • Improved cache usage (mainly for fonts) and significantly reduced locking.

✨ Other improvements:

  • Added support for soft hyphens: the library does not hyphenate text automatically, but soft hyphen characters (U+00AD) are now correctly interpreted as optional break points and rendered as hyphens when a line breaks.
  • Added the TextStyle.BreakAnywhere API, which allows a text span to break between any two characters, not only at word boundaries such as spaces or hyphens. Useful for content without natural break points, e.g. long URLs, identifiers, hashes, or file paths.
  • Improved the visual position of the underline and double underline text decorations.
  • Improved reliability of the Companion App integration: document previews are now refreshed from a consistent snapshot, and rendered pages are transferred more efficiently.
  • Increased the zlib compression level used for PDF generation from 1 to 3, which produces significantly smaller files (for text-heavy documents) with a minimal increase in generation time.
  • Updated the Skia native dependency to version m152.

⚠️ Breaking change

XPS generation has been removed. The format was supported only on Windows, had several rendering issues that could not be reliably resolved, and had negligible adoption. The GenerateXps and GenerateXpsAndShow methods are still present, but calling them now results in a compilation error, and code compiled against an earlier version throws an exception at runtime. Please use PDF generation instead.

2026.7.3

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 12 Aug 08:08
  • Breaking change: The Rotate API now rotates elements around their center instead of the top-left corner. Center-origin rotation is the expected behavior in virtually all use cases.
  • Behavioral change: Generated images now use a white background by default, so the output matches how the document appears in a PDF viewer. Previously, PNG and WEBP images had a transparent background. To restore the old behavior, enable ImageGenerationSettings.UseTransparentBackground (applies only to formats supporting transparency: PNG and WEBP).
  • Automated table semantic tagging is now applied whenever a Table element is placed inside a SemanticTable container, even indirectly. Nested semantic captions are now supported as well.
  • Image elements now emit the /BBox attribute, improving PDF/UA-1 compliance with validators that require it.
  • Improved the stability and speed of the QuestPDF Companion integration. The integration now requires .NET 8 or newer.
  • Improved the developer experience of the GeneratePdfAndShow and GenerateXpsAndShow methods.
  • Deprecated AsSemanticHorizontalHeader in favor of SemanticHorizontalHeader for API naming consistency.
  • Deprecated RotateLeft and RotateRight in favor of RotateLayoutCounterclockwise and RotateLayoutClockwise, which better describe what these methods do.

2026.7.2

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 29 Jul 07:55
  • Fixed a rare Windows x64 concurrency issue where generated PDF documents appeared correct in viewers, but selected and copied text was corrupted.
  • Improved text rendering representation to resolve rare compatibility issues in certain PDF viewers that could cause incorrect results when selecting or copying text.
  • Improved compatibility for complex glyphs, such as ligatures, by annotating them with the /ActualText tag. This improves text selection, copying, extraction, and screen-reader accessibility. Ligatures remain disabled by default.
  • Added support for the AllowModification permission in DocumentOperations when encrypting PDF documents with 128-bit or 256-bit keys.
  • Added minor fixes and expanded test coverage for the DocumentOperations API.

2026.7.1

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 11 Jul 15:55

Improved performance

PDF generation is now significantly faster. The Skia native dependency has been recompiled with speed-oriented optimizations (favoring performance over binary size) and with SIMD instructions enabled.

The impact depends on document content and platform. For example, generating image-heavy documents that require image rescaling can be several times faster on Windows x64 🎉

Note: this change slightly increases the size of the native dependency by around 20%.


Continuous performance monitoring

We have also built a solid foundation for measuring library performance going forward. A new GitHub Actions workflow benchmarks QuestPDF across all supported operating systems, processor architectures, and .NET releases.

This infrastructure helps us ensure that performance remains stable and consistent across all platforms, and allows us to detect regressions early — before they ever reach a release.

2026.7.0

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 05 Jul 16:14
  • Updated licensing terms and conditions to version 3.0, including the removal of the developer seat limit for all paid licenses (details: https://www.questpdf.com/pricing).
  • Added full support for .NET Native AOT and trimming.
  • Added and improved warning messages related to library configuration.
  • Fixed a rare rendering issue where the footer was placed incorrectly when the page content was empty.

2026.6.1

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 25 Jun 15:16
  • Updated the Skia native dependency to M150.
  • Improved text rendering stability when handling an excessive number of whitespace characters.
  • Improved the failure message shown when the library runs on an unsupported platform (e.g., Android, iOS, or WASM).
  • Improved platform compatibility checks and introduced more advanced fallback mechanisms.
  • Improved diagnostics for missing font glyph exceptions.
  • Improved PDF output consistency of section links by avoiding name escaping and removing unnecessary documentId prefix.
  • Made the Image.Size property public.

2026.6.0

Choose a tag to compare

@MarcinZiabek MarcinZiabek released this 10 Jun 15:09
  • Substantially revised the QuestPDF legal documents to better support enterprise procurement and compliance requirements and to define usage terms more clearly.
  • Introduced native support for Windows ARM64 (win-arm64) environments.
  • Improved compatibility with older Linux distributions (glibc 2.28 and newer).
  • Reduced the NuGet package size by optimizing native dependencies.
  • Renamed the TranslateX / TranslateY methods to OffsetX / OffsetY to improve discoverability.
  • SVG rendering improvements:
    • Prevented zero-width strokes from being rendered as hairlines, aligning behavior with the SVG specification.
    • Added support for embedded Base64 images that use the modern href attribute instead of xlink:href.
    • Added support for the #RGBA and #RRGGBBAA color formats.
    • Added support for the transparent named color.
  • Fixed PDF bookmark titles so they include only text from the associated paragraph, excluding the alternative text of images.
  • Fixed SectionLink behaving incorrectly when target Section is placed in page header.
  • Updated the Skia native dependency to version m149.
  • Updated the qpdf native dependency to version 12.3.2.
  • Modernized the build system for native dependencies, including how QuestPDF-specific patches are applied.
  • Updated all GitHub Actions workflows to use standard runners, reducing costs and making it easier for everyone to contribute to the project.