Unplanned
Last Updated: 05 May 2025 12:24 by ADMIN

Overview

This repository documents a bug found in the Telerik PDF Viewer control for Windows Forms. The issue specifically affects the rendering of SVG graphics embedded in PDF files, where the stroke-width attribute is ignored by the viewer.

Affected Component

  • Product: Telerik UI for WinForms
  • Control: `RadPdfViewer'
  • Version: 2025.01
  • Platform: Windows Forms (.NET Framework)

Description of the Issue

When a PDF file contains an embedded SVG graphic that utilizes the stroke-width CSS property (or SVG attribute), the stroke width is not rendered correctly in Telerik's PDF preview control. Regardless of:

  • Unit used (e.g., px, pt, em, %, etc.)
  • Value assigned (e.g., stroke-width: 5stroke-width: 30, etc.)

…the resulting line always appears thin, as if the stroke width were ignored entirely. This makes the SVG appear incorrectly and inconsistent with its rendering in other PDF viewers (e.g., Adobe Acrobat, Chrome's built-in viewer).

Steps to Reproduce

  1. Run the application from provided MCVE
  2. Observe the SVG lines in PDF preview: all strokes appear thin, regardless of defined stroke width.

Expected Behavior

The Telerik PDF viewer should correctly honor and render the stroke-width property defined within SVG elements embedded in the PDF file.

Actual Behavior

All strokes in SVGs appear very thin, with no visual difference despite varying stroke widths in the source SVG.

Sample Files

  • βœ… _PdfExample.pdf: A PDF with SVG lines that render correctly in Microsoft Edge.
  • βœ… _PdfExample.pdf: Screenshot of how the PDF file looks in Microsoft Edge.
  • ❌ _ScreenshotFromTelerik.png: Screenshot of how the same file looks in the Telerik PDF Viewer (note the thin lines).
  • πŸ” _LargeStroke.svg_SmallStroke.svg: The original SVGs used in the PDF file.

Environment

ComponentVersion
Telerik UI2025.1.211.48
.NET Framework.NET Framework 4.8
OSWindows 11

Suggested Fix

Ensure that the rendering engine used by RadPdfViewer fully supports the SVG stroke-width attribute when parsing and rendering embedded SVG content.

Completed
Last Updated: 09 Apr 2025 12:12 by ADMIN
Release 2025.1.310 (Preview)

For example, if you choose to print second page like this: 


It prints only the first page of the document, instead of the second page.

Declined
Last Updated: 20 Feb 2025 12:33 by ADMIN
Created by: Miguel
Comments: 2
Category: PdfViewer
Type: Bug Report
0

Template PDF documents created for example with Foxit PDF Editor, or with documents created programmatically with Aspose.

If the documents are opened with other PDF viewers such as Foxit or Adobe, there are no problems, which is not the case with the Telerik viewer.

I am currently using Telerik UI for WinForms 2024 Q4 24.4.1113.0

 

Completed
Last Updated: 12 Feb 2025 12:44 by ADMIN
Release 2025.1.211 (2025 Q1)
Completed
Last Updated: 12 Feb 2025 12:43 by ADMIN
Release 2025.1.211 (2025 Q1)
Created by: Philip
Comments: 2
Category: PdfViewer
Type: Bug Report
2
Signature fields are not rendered in the PDF while loading it in the RadPdfViewer control.
Completed
Last Updated: 12 Feb 2025 12:39 by ADMIN
Release 2025.1.211 (2025 Q1)

The following assemblies are missing in the 2024_4_1127_Dev_Preview zip folder:
- Telerik.Windows.Documents.Flow.FormatProviders.Doc
- Telerik.Windows.Documents.Flow.FormatProviders.Pdf
Telerik.Documents.SpreadsheetStreaming.dll

Unplanned
Last Updated: 14 Oct 2024 14:50 by Tony

Open the Demo app and load the PDF document with such annotation. The following error occurs:

************** Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Telerik.Windows.Documents.Fixed.Utilities.Rendering.Annotations.DefaultAppearanceProvider.TryGetCurrentAnnotationAppearances(Annotation annotation, SingleStateAppearances& singleStateAppearances)
   at Telerik.Windows.Documents.Fixed.Utilities.Rendering.Annotations.DefaultAppearanceProvider.TryProvideAppearanceOverride(Annotation annotation, AnnotationAppearanceMode annotationAppearanceMode, FormSource& formSource)
   at Telerik.Windows.Documents.Fixed.Utilities.Rendering.Annotations.BaseAppearanceProvider.TryProvideAppearance(Annotation annotation, AnnotationAppearanceMode annotationAppearanceMode, FormSource& appearance)
   at Telerik.Windows.Documents.Fixed.Utilities.Rendering.Annotations.BaseAppearanceProvider.TryProvideAppearance(Annotation annotation, AnnotationAppearanceMode annotationAppearanceMode, FormSource& appearance)
   at Telerik.WinControls.PdfViewer.FixedPageRenderer.DrawPage(RadFixedPage page, Graphics graphics)
   at Telerik.WinControls.UI.FixedPagePreRenderer.rendererWorker_DoWork(Object sender, DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
   at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Completed
Last Updated: 25 Sep 2024 10:22 by ADMIN
Release 2024.3.924
A specific scanned file is not displayed with the new model.
Unplanned
Last Updated: 16 Aug 2024 08:46 by ADMIN
A specific scanned file is not displayed in the viewer. This lead to empry pages.
Duplicated
Last Updated: 08 Aug 2024 10:37 by ADMIN
Created by: Mihajlo
Comments: 1
Category: PdfViewer
Type: Bug Report
0

The attached file lorem-ipsum.pdf is rendered incorrectly in PdfViewer. I suspect it has something to do with kerning, because monospace font is not affected. Adobe Acrobat, Foxit PDF Reader, and Chrome render the file correctly.

The file was created with Pandoc, open source software, converting a markdown file (.md) to .pdf.

Unplanned
Last Updated: 25 Jun 2024 14:21 by ADMIN

When RadPdfViewer is in text selection mode and the user is trying to select a word by double-clicking on it, the last letter of the word is not selected when the word is followed by some symbols like '.', ':', '(', '...'

Also, the CaretPosition is not correct.

Completed
Last Updated: 15 May 2024 07:49 by ADMIN
Release 2024.2.514 (2024 Q2)
When the font is not embedded in the document, PdfViewer tries to read it from the OS. However, the Calibri-Font is not properly parsed and a NullReferenceException is thrown internally for its encoding. 
Unplanned
Last Updated: 02 May 2024 12:01 by ADMIN
On HDPI (200%) Print Preview Dialog bottom buttons are cut off.
Unplanned
Last Updated: 17 Apr 2024 14:32 by ADMIN
The editor size should be limited to the size of the widget. Currently on is able to enter more than one line in a textbox and when the content is not visible and it is cut off when flattening. 
Unplanned
Last Updated: 09 Apr 2024 05:57 by Tino

Steps to reproduce:

1. Load a PDF document with 0 pages

2. Enter some text in the search textbox and click the next/prev buttons

Expected: the search textbox should be either disabled or should ignore any search operation

Actual: an error occurs

Workaround:

    Private Sub pdf_Viewer_DocumentLoaded(sender As Object, e As EventArgs)
        If pdf_Viewer.Document.Pages.Count = 0 Then
            pdf_Toolbar.SearchTextBox.Enabled = False
            pdf_Toolbar.NextButton.Enabled = False
            pdf_Toolbar.PreviousButton.Enabled = False
        Else
            pdf_Toolbar.SearchTextBox.Enabled = True
            pdf_Toolbar.NextButton.Enabled = True
            pdf_Toolbar.PreviousButton.Enabled = True
        End If
    End Sub

 

Declined
Last Updated: 16 Feb 2024 22:19 by ADMIN
Created by: Haithem
Comments: 2
Category: PdfViewer
Type: Bug Report
0

Hello 

 

I am have a problem with pdf wiewer when the PDF file contains an images , it is slow in movement and it is difficult to navigate between pages. Is it possible to fix this problem 

 

 

Unplanned
Last Updated: 16 Feb 2024 12:30 by ADMIN
Created by: Henk
Comments: 0
Category: PdfViewer
Type: Bug Report
0
PDFViewer: GotoDestination(Destination) is off vertically
Completed
Last Updated: 31 Jan 2024 11:39 by ADMIN
Release 2024 Q1 (2024.1.130)
A password is asked although adobe opens the document without one
Completed
Last Updated: 20 Nov 2023 07:41 by ADMIN
Release R3 2023 SP1 (2023.3.1114)
1 2 3 4 5 6