Completed
Last Updated: 12 Feb 2025 16:03 by ADMIN
Release 8.0.0
Open a PDF file in the PDF Viewer. Tap the magnifier icon to initiate the search. Start typing, the component freezes. 
Unplanned
Last Updated: 11 Feb 2025 13:05 by Joel

The PDF Viewer fails to display the loaded document if StateHasChanged() is called when the Data parameter is set.

  • A possible workaround is to call await Task.Delay(...) after StateHasChanged().
  • When loading the file in OnAfterRenderAsync, then add the delay before calling StateHasChanged().

    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        if (firstRender)
        {
            PdfViewerData = await System.IO.File.ReadAllBytesAsync(......);
            await Task.Delay(1);
            StateHasChanged();
        }

        await base.OnAfterRenderAsync(firstRender);
    }

Test Page (run this in a server app):

<h1>PDF Viewer Tests</h1>

<h2>Load Initially</h2>

<TelerikPdfViewer Data="@FileData1"
                  EnableLoaderContainer="true"
                  Height="30vh"
                  Zoom="0.75m">
</TelerikPdfViewer>

<h2>Load On Demand</h2>

<TelerikButton ThemeColor="@ThemeConstants.Button.ThemeColor.Primary"
               OnClick="@( async () => await LoadPdf(2) )">Load PDF</TelerikButton>

<TelerikPdfViewer Data="@FileData2"
                  EnableLoaderContainer="true"
                  Height="30vh"
                  Zoom="0.75m">
</TelerikPdfViewer>

@code {
    private byte[]? FileData1 { get; set; }
    private byte[]? FileData2 { get; set; }

    protected async override Task OnInitializedAsync()
    {
        await LoadPdf(1);
    }

    public async Task LoadPdf(int id)
    {
        await Task.Delay(1000);

        if (id == 2)
        {
            FileData2 = Convert.FromBase64String(PdfBase64);
        }
        else
        {
            FileData1 = Convert.FromBase64String(PdfBase64);
        }

        StateHasChanged();

        await Task.Delay(300);
    }

    private const string PdfBase64 = "JVBERi0xLjEKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDEvTWVkaWFCb3ggWy00MCAtNjQgMjYwIDgwXSA+PmVuZG9iagozIDAgb2JqPDwvVHlwZS9QYWdlL1BhcmVudCAyIDAgUi9SZXNvdXJjZXM8PC9Gb250PDwvRjE8PC9UeXBlL0ZvbnQvU3VidHlwZS9UeXBlMS9CYXNlRm9udC9BcmlhbD4+ID4+ID4+L0NvbnRlbnRzIDQgMCBSPj5lbmRvYmoKNCAwIG9iajw8L0xlbmd0aCA1OT4+CnN0cmVhbQpCVAovRjEgMTggVGYKMCAwIFRkCihUZWxlcmlrIFBkZlZpZXdlciBmb3IgQmxhem9yKSBUagpFVAplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZgowMDAwMDAwMDIxIDAwMDAwIG4KMDAwMDAwMDA4NiAwMDAwMCBuCjAwMDAwMDAxOTUgMDAwMDAgbgowMDAwMDAwNDkwIDAwMDAwIG4KdHJhaWxlciA8PCAgL1Jvb3QgMSAwIFIgL1NpemUgNSA+PgpzdGFydHhyZWYKNjA5CiUlRU9G";
}

 

Unplanned
Last Updated: 23 Jan 2025 10:26 by HyunSoo
Created by: HyunSoo
Comments: 0
Category: PDFViewer
Type: Feature Request
2
I want to detect when a specific page is rendered, so I can extract information from that page. Please expose a render event similar to the one in jQuery.
Unplanned
Last Updated: 15 Dec 2024 19:29 by Marc
Created by: Nicolas
Comments: 4
Category: PDFViewer
Type: Feature Request
35
I would like to be able to control the default zoom level in the PDF viewer. For example, I would like to be able to set it as "Fit to Page". 
Unplanned
Last Updated: 09 Dec 2024 13:36 by ADMIN
Created by: Scott
Comments: 3
Category: PDFViewer
Type: Feature Request
8

Hello, I like the Telerik PDF Viewer for Blazor, but it's not supporting Table of Contents (TOC) links.  I would like to request this feature so that there are links in the TOC automatically.  I'm using Blazor WebAssembly.

Thank you for considering my request.

Unplanned
Last Updated: 03 Dec 2024 07:56 by Markus
Created by: Markus
Comments: 0
Category: PDFViewer
Type: Feature Request
5

I want to have an option for digital signatures with browser-based certificate selection.

===

ADMIN EDIT

===

For the time being, you can use the following custom approach: Signing PDFs with PdfPRocessing in PdfViewer.

Need More Info
Last Updated: 02 Dec 2024 15:11 by ADMIN
Created by: Kevin
Comments: 1
Category: PDFViewer
Type: Bug Report
1

Hello,

we are using the PDFViewer Component. 

The zoom function usually works perfectly, both on mobile and desktop.

But there is one exception.

There is one scenario, where our PO got an crash, when he try to use ANY zoom functionality of the component. 

He is using:

  • a Samsung Galaxy S21 FE 5G
  • Android 14
  • Chrome Browser

Completed
Last Updated: 28 Nov 2024 09:41 by ADMIN
Release 7.0.0
Created by: Mir
Comments: 7
Category: PDFViewer
Type: Feature Request
20
Able to add/edit/view Annotations to the pdf viewer.
Unplanned
Last Updated: 26 Nov 2024 09:34 by Graham
Enable navigation by displaying page thumbnails, allowing users to click on a thumbnail to jump directly to the corresponding page.
Completed
Last Updated: 14 Nov 2024 09:28 by ADMIN
Release 7.0.0

When the user scrolls the PDF Viewer down and then opens another PDF file, the new document should display on the first page. Currently, the new file displays scrolled to the page from the previous file and the user must scroll to the top manually.

===

A possible workaround is to scroll the PDF file with JavaScript in the PDF Viewer OnOpen event:

 

@inject IJSRuntime js

<TelerikPdfViewer Data="@PdfSource"
                  Height="600px"
                  OnOpen="@OnPdfViewerOpen"
                  Class="@PdfViewerClass">
</TelerikPdfViewer>

<script suppress-error="BL9992">
    function scrollPdfToTop(selector) {
        var pdfCanvas = document.querySelector(selector);
        if (pdfCanvas) {
            pdfCanvas.scrollTop = 0;
        }
    }
</script>

@code {
    private byte[]? PdfSource { get; set; }

    private string PdfViewerClass { get; set; } = "scrollable-pdf-viewer";

    private async Task OnPdfViewerOpen()
    {
        await js.InvokeVoidAsync("scrollPdfToTop", $".{PdfViewerClass} .k-pdf-viewer-canvas");
    }
}

 

Completed
Last Updated: 14 Nov 2024 09:28 by ADMIN
Release 7.0.0

After clicking the Print button, the pages are ordered incorrectly. Can be seen in the preview window.

Steps to reproduce:

1. Open https://demos.telerik.com/blazor-ui/pdfviewer/overview

2. Click the Print button

Completed
Last Updated: 02 Oct 2024 14:00 by ADMIN

Open the PDF Viewer component online demo and click the download button:

Expected - the PDF must be downloaded.

Current - the file is not downloaded.

Duplicated
Last Updated: 16 Sep 2024 12:39 by ADMIN
Created by: RND
Comments: 1
Category: PDFViewer
Type: Bug Report
0

We're currently working on requiring a Google CASA Security Assessment, as part of this they scanned our site. 

However, the scan found an eval() function in the telerik-blazor.js file:

if(_util.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}

 

Is it possible to remove eval() from telerik-blazor.js?

 
Unplanned
Last Updated: 03 Sep 2024 09:19 by René
Created by: Miroslav
Comments: 1
Category: PDFViewer
Type: Feature Request
30
Hello,

we have a bookmark structure with page numbers associated with a PDF and user can navigate throught this structure and jump to particular pages - therefore we need to set the current page of PDF Viewer programmatically.  

Moreover we need to know the count of pages of the viewed PDF file. This can be gotten by using PDF processing API, but it is a bit inconvenient to open the PDF file twice just for this purpose especially in case of big PDF files.

Very thanks,

Miroslav
Completed
Last Updated: 26 Aug 2024 13:50 by ADMIN
Release 2024 Q2 (May)
Created by: Srdjan
Comments: 13
Category: PDFViewer
Type: Bug Report
22
If you compare the print quality against the Kendo UI jQuery PDF viewer, the quality difference is night and day. We did not investigate what is happening under the hood in both components. However, the same printing dialog appears when printing via both components and both of them are web components, which indicates to us, that this issue is not related to the browser.
Completed
Last Updated: 05 Aug 2024 13:31 by ADMIN
Release 6.1.0
The ZoomChanged event doesn't fire when the user clicks on the zoom in/out buttons or selects a new zoom level from the ComboBox.
Unplanned
Last Updated: 06 Jun 2024 08:15 by Ron
Created by: Brian
Comments: 1
Category: PDFViewer
Type: Feature Request
4
Our use case doesn't seem that too "out of the ordinary", but we have standardized forms that are dynamically rendered using Telerik inputs and a PDF Viewer component and when the user focuses on one of the inputs, the PDF needs to pan/zoom in the general region/area where the value of that input field is located on the PDF.  It's basically to give the user the ability to verify a value that has been OCR'd from the PDF and displayed in the input field.  We have another feature request to add the ability to quickly add a square annotation to the PDF via the API as well because we have to highlight the actual area on the PDF as we pan/zoom.
Completed
Last Updated: 22 Apr 2024 16:08 by ADMIN
Release 2024 Q2 (May)
I am opening a standard PDF document and it is not properly displayed in the PDF Viewer. For example, you can see the logo and the table borders but the text of the PDF is missing. If you open the same document in a normal Adobe viewer it is fine.
Completed
Last Updated: 05 Mar 2024 06:55 by ADMIN
Release 2024 Q2 (May)
Created by: Bjørnar
Comments: 0
Category: PDFViewer
Type: Bug Report
23

If the PdfViewer is initialized with a default document, the display performance of this document will be a lot worse, compared to PDF documents that are loaded programmatically after the component is already on the web page.

 

Unplanned
Last Updated: 25 Jan 2024 13:12 by Brett
Created by: Peter
Comments: 1
Category: PDFViewer
Type: Feature Request
8
I would like to use buttons that allow me to rotate the rendered PDF clockwise and counter-clockwise.