Completed
Last Updated: 07 Jun 2023 10:38 by ADMIN
Release R2 2023 (2023.2.606)
Chris
Created on: 27 Apr 2023 07:49
Category: PdfViewer
Type: Bug Report
0
RadPdfViewer: NullReferenceException when clicking on editable PDFs on textboxes

It seems that this is a regression in R1 2023 SP1 after addressing this item:

https://feedback.telerik.com/winforms/1591828-radpdfviewer-input-fields-can-t-be-read-in-some-dark-themes 

1 comment
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 27 Apr 2023 07:56

Hello, Chris,

Thank you for bringing this to our attention. We will do our best to introduce a fix as soon as possible. Make sure that you follow this item in order to get notified once any status changes occur.

Please excuse us for the inconvenience caused.

Workaround: 

        Dim provider = New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider()
        Dim filePath As String = "../../Move Form Fillable Hydro.pdf"
        Dim doc As Telerik.Windows.Documents.Fixed.Model.RadFixedDocument = provider.Import(File.ReadAllBytes(filePath))

        For Each page As Telerik.Windows.Documents.Fixed.Model.RadFixedPage In doc.Pages

            For Each a In page.Annotations
                Dim widget As VariableContentWidget = TryCast(a, Telerik.Windows.Documents.Fixed.Model.Annotations.VariableContentWidget)
                If widget IsNot Nothing Then
                    widget.AppearanceCharacteristics.Background = New Telerik.Windows.Documents.Fixed.Model.ColorSpaces.RgbColor(255, 255, 255)
                End If
            Next
        Next

        Me.RadPdfViewer1.Document = doc

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.