Unplanned
Last Updated: 18 Sep 2025 12:49 by Christopher
KeyNotFoundException is thrown when importing a document with a structure element that references a page that is not part of the page collection.
In Development
Last Updated: 18 Sep 2025 13:12 by ADMIN
ArgumentNullException is thrown when importing a restricted, AES-encrypted document.
Unplanned
Last Updated: 15 Sep 2025 11:30 by Steinar
Unplanned
Last Updated: 15 Sep 2025 11:15 by Tim
Solid lines appear over dashed lines when generating PDF from SVG diagram.
Unplanned
Last Updated: 15 Sep 2025 11:09 by Tim
Creating a document from an SVG image with a CapPathRound (stroke-linecap="round") adds unexpected lines.
Unplanned
Last Updated: 15 Sep 2025 09:57 by David

InvalidCastException is thrown when importing a document with a structure element with an indirect reference to an integer value.

InvalidCastException: 'Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfInt' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.MarkedContents.StructElementObject'.'

Duplicated
Last Updated: 15 Sep 2025 06:44 by ADMIN

Registering the font used to be enough for resolving the font's characters in .NET Standard

			byte[] fontData = File.ReadAllBytes(".\\files\\cour.ttf");
			FontFamily courierNewFont = new FontFamily("Courier New");
			FontsRepository.RegisterFont(courierNewFont, FontStyles.Normal, FontWeights.Normal, fontData);

However, as of  version 2024.2.426 registering the font doesn't produce the correct result anymore and the text got missing in the PDF fields. When the document is opened in Adobe, the following message appears: 

The FontsProvider works in both versions (before and after 2024.2.426). It is also required to iterate all widgets and apply the font explicitly to the widget.TextProperties.Font property.

In Development
Last Updated: 10 Sep 2025 06:13 by ADMIN
When the Normal appearance of the ListBoxField containing MarkedContent with an empty properties dictionary, the selection is lost.
Unplanned
Last Updated: 05 Sep 2025 08:52 by Alvin

The TextProperties.FontSize property specifies the font size for text fragments. The property is of type double. The measurement unit used for font size in RadPdfProcessing is Device Independent Pixels (DIPs). You can convert it to points or other units using the Unit class.

However, when using the TextProperties with widgets the font conversion is not correct. Let's consider the case that we build a PDF document with a TextBoxField occupying a specific rectangle. According to the set text value, we should calculate the appropriate font size so the whole content can fit in the widget's rectangle.

        /// <summary>
        /// Creates a TextBoxField with calculated font size for the given rectangle
        /// </summary>
        private static TextBoxField CreateTextBoxWithCalculatedFont(string name, string text, Rect rect, double fontSize, FontBase font)
        {
            TextBoxField field = new TextBoxField(name);
       
            field.TextProperties.FontSize = Unit.DipToPoint(fontSize);
            field.TextProperties.Font = font;
            field.Value = text;

            var widget = field.Widgets.AddWidget();
            widget.Rect = rect;
            widget.Border.Width = 0;
            widget.TextProperties.FontSize = Unit.DipToPoint(fontSize); 
            widget.TextProperties.Font = font;

            return field;
        }

        /// <summary>
        /// Calculates the optimal font size for text to fit within a specific rectangle
        /// </summary>
        public static double CalculateFontSizeForRectangle(string text, Rect rect, FontBase font)
        {
            double fontSize = 0;
            Size measuredSize = new Size(0, 0);
            Size availableSize = rect.Size;
            while (measuredSize.Width<availableSize.Width && measuredSize.Height< availableSize.Height)
            {
                fontSize++;
                Block block = new Block();
                block.TextProperties.FontSize = fontSize;
                block.TextProperties.Font = font;
                block.InsertText(text);
                measuredSize = block.Measure();
            }

            return fontSize-1;
        }

            // Example: Wide textbox with calculated font size
            string wideText = "This is a wide textbox that demonstrates horizontal fitting of text content.";
            Rect wideRect = new Rect(200, 500, 400, 30);
            double wideFontSize = CalculateFontSizeForRectangle(wideText, wideRect, font);

            TextBoxField wideTextBoxField = CreateTextBoxWithCalculatedFont("WideTextBox", wideText, wideRect, wideFontSize, font);
            document.AcroForm.FormFields.Add(wideTextBoxField);
            var wideWidget = wideTextBoxField.Widgets.First();
            page.Annotations.Add(wideWidget);
            wideWidget.RecalculateContent();

In Development
Last Updated: 09 Sep 2025 14:09 by ADMIN
ArgumentException is thrown when exporting a document with a Unicode character in the Document Info
In Development
Last Updated: 09 Sep 2025 11:07 by ADMIN

Error message: 

Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfInt' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Elements.MarkedContents.StructAttributeObject'.

In Development
Last Updated: 09 Sep 2025 11:23 by ADMIN

PDF content:

Exported text content:


Unplanned
Last Updated: 15 Aug 2025 12:29 by Thomas
The appearance of a form field button is lost after import-export.
In Development
Last Updated: 09 Sep 2025 11:09 by ADMIN

When you register a font in an ASP.Core project and in a static constructor, the generated PDF document will have this font only the first time you load the web page. Refreshing the page will generate the PDF document but the fonts will be lost.

Note: This worked in the previous version  2025.2.701.

 

In Development
Last Updated: 14 Aug 2025 14:11 by Dan
Manually set form field values are not preserved when opened in Adobe Acrobat.
Unplanned
Last Updated: 11 Aug 2025 08:35 by ADMIN

When importing a document with an invalid creation or modification date, an exception is thrown:

  • FormatException: 'The input string '' was not in a correct format.'
  • ArgumentOutOfRangeException: 'Year, Month, and Day parameters describe an unrepresentable DateTime.'
Unplanned
Last Updated: 04 Aug 2025 10:04 by Graham
Created by: Graham
Comments: 0
Category: PdfProcessing
Type: Feature Request
0
Implement GetColor method for IndexedColorSpaceObject.
Completed
Last Updated: 15 Aug 2025 13:49 by ADMIN
Release 2025.3.806 (2025 Q3)
When applying MultipleSubstFormat1, an exception is thrown: "NullReferenceException: 'Object reference not set to an instance of an object.'"
Unplanned
Last Updated: 24 Jul 2025 11:55 by ADMIN
SMask.Matte is not applied correctly when exporting to an image.
Completed
Last Updated: 15 Aug 2025 13:49 by ADMIN
Release 2025.3.806 (2025 Q3)

The issue is not reproducible in Q1 2025 (2025.1.205).

In Q2 2025 we introduced the MarkedContent in a RadFixedDocument.

1 2 3 4 5 6