Search Results for

    Show / Hide Table of Contents

    What’s new in 6.x

    Version 6.2.0

    In this article

    • New features
    • PDF specific features
    • Enhancements and bug fixes

    This article lists the most important new features and enhancements in PDFsharp 6.

    New features

    Support for .NET and .NET Framework

    Starting with version 6.2, PDFsharp supports .NET Framework 4.6.2 or higher, .NET Standard 2.0, and .NET 6 or higher. For both .NET and .NET Framework there is a GDI and a WPF build with additional functionality when used with Windows applications. The WPF build can also be used if your application does not use WPF, the GDI build can also be used if your application does not use WinForms.

    The Core build based on .NET Standard 2.0 can be used with any older project that supports .NET Standard 2.0. The Core build based on .NET can be used for projects using .NET 6 or higher. This includes platforms like Linux and Mac and technologies like ASP.NET, Blazor, and MAUI.

    Logging

    You can set a global logger factory that is used for logging within PDFsharp.

    For more information see Logging

    Fonts

    • Font resolving
      PDFsharp now has a built-in platform font resolver for the Core build that can be used in Windows and WSL2, but as of version 6.2 this font resolver must be activated. This way you can get quickly started with developing and testing, but in production code we highly recommend to use a custom font resolver. Additionally you can set a fallback font resolver that is invoked if a requested typeface cannot be resolved by the built-in resolver or the custom resolver respectively.

    • RenderTextEvent
      The new RenderTextEvent allows to review and modify the code point and glyph index pairs of a text before it is drawn or measured.

    • Font cache reset
      With GlobalFontSettings.ResetFontManagement you can reset all internal font caches. This may be useful in certain scenarios.

    For more information see the Fonts topics

    PDF specific features

    We added new PDF specific features.

    Accessibility

    PDFsharp can now produce PDF/UA documents. UA stands for Universal Accessibility and allows to enhance PDF documents with information for screen readers.

    For more information see Accessibility

    Encryption

    PDFsharp supports the latest document encryption standards up to AES-256 introduced in PDF 2.0.

    For more information see Encryption

    Enhancements and bug fixes

    There are countless small enhancements and minor bug fixes. Here are some of the most important ones.

    • Better font embedding
      Font programs (font files) are only embedded once when used with different font encodings. That reduces the size of PDF documents in certain circumstances.

    • Surrogate pairs
      Fix of several bugs in connection with surrogate pairs. Now you can draw all code points in all fonts correctly.

    • Larger PDF files PDFsharp now can read and write PDF files larger than 2 GiB. The maximum size is now approximately 10 GB. This makes sense in pre-press scenarios with PDF files containing lots of high resolution bitmap images.

    • Better PDF reading
      Some PDF producer apps create PDF files that are not completely correct according to the PDF specification. However, Adobe Acrobat and other viewer applications accept such PDF files. We added some enhancements so that PDFsharp also can open such files.

      Tip

      If you have a PDF file that can be opened by Acrobat but not by PDFsharp, please send it to us. We adapt PDFsharp to process this file.

    • Edit this page
    In this article
    Generated by DocFX  |   Privacy policy  |   Legal notice
    Back to top