Unplanned
Last Updated: 19 Mar 2025 11:28 by ADMIN

Please expose a parameter to show or hide the "Select files..." button inside the empty PDF Viewer.

Currently, a possible workaround is to use CSS. Additionally, you may configure the Toolbar to not include the "Open" tool.

<style>
    .no-open .k-blank-page {
        display: none;
    }

    /* Use these selectors if you want to separately target the upload or the dropzone */
    /* .no-open .k-external-dropzone,
    .no-open .k-upload{
        display: none;
    } */
</style>

<TelerikPdfViewer Data="@PdfSource"
                  OnOpen="@OnPdfOpen"
                  Height="600px"
                  Class="no-open">
    <PdfViewerToolBar>
        <PdfViewerToolBarDownloadTool />
        <PdfViewerToolBarPrintTool />

        <PdfViewerToolBarSpacer />

        <PdfViewerToolBarPagerTool />

        <PdfViewerToolBarSpacer />

        <PdfViewerToolBarZoomTool />
        <PdfViewerToolBarSelectionTool />
        <PdfViewerToolBarSearchTool />
        <PdfViewerToolBarAnnotationsTool />
    </PdfViewerToolBar>
</TelerikPdfViewer>

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

    private bool LoaderVisible { get; set; }

    private async Task OnPdfOpen(PdfViewerOpenEventArgs args)
    {
        // Cancel the event for additional precaution in case someone bypasses the CSS and forces the page to show the button and the dropzone.
        args.IsCancelled = true;
    }
}

Duplicated
Last Updated: 05 Mar 2025 08:34 by ADMIN
Created by: Mindaugas
Comments: 0
Category: PDFViewer
Type: Feature Request
11

We still have some problems with printed pdf quality after the updates in 6.0.0. When pdf is printed using Telerik PDF viewer it seems it gets processed/rasterized and loses quality.

 

Completed
Last Updated: 25 Feb 2025 07:10 by ADMIN
Release 8.0.0
Created by: Evan
Comments: 4
Category: PDFViewer
Type: Bug Report
1

Acro field values don't show in the PDF VIewer, although they display in the print preview dialog.

This is a regression in version 7.0.0. Version 6.2.0 displays the acro field values as expected.

===

TELERIK edit: This public item originally concerned to all Acro fields. We fixed the problem for editable Acro fields, while the fix for readonly ones can be tracked at PDF Viewer does not display readonly Acro fields

Duplicated
Last Updated: 14 Feb 2025 12:05 by ADMIN

Hello together,

we are running into a problem with TelerikPdfViewer. When clicking the download button, download starts and performs properly.

BUT: the downloaded PDF file does not match the PDF that was provided via Data="@PdfData". On download something internally prepends some text to the PDF:

–€À³JS.ReceiveByteArray’Æ ‘¢%PDF-1.7
%úûüý
3 0 obj
<</ca 1.00000 /AIS false >>
endobj
5 0 obj

The original PDF file starts at "%PDF-1.7" (end of first line). That part before (including that "JS.ReceiveByteArray") was somehow added during the download workflow by Telerik. We ensured that the PDF data we provided to the viewer (via Data="@PdfData") ist valid. We did so by inspecting the byte[]-Array manually in the debugger as well as downloading it via a JS function to the client.

This is how we are using the TelerikPdfViewer. But the error occurs no matter if we are handling the OnDownload-Event (setting the filename) or not handlign that event at all (i.e. eliminating the OnDownload="@OnPdfDownload" completely)

        <TelerikPdfViewer Data="@PdfData" Width="100%" Height="100%" Zoom="1m" OnDownload="@OnPdfDownload">
            <PdfViewerToolBar>
                <PdfViewerToolBarPagerTool />

                <PdfViewerToolBarSpacer />

                <PdfViewerToolBarZoomTool />
                <PdfViewerToolBarSelectionTool />
                <PdfViewerToolBarSearchTool />

                <PdfViewerToolBarSpacer />

                <PdfViewerToolBarDownloadTool />
                <PdfViewerToolBarPrintTool />
            </PdfViewerToolBar>
        </TelerikPdfViewer>

We use Telerik.UI.for.Blazor (6.2.0).

Thanks for your feedback on this issue and best regards!

Sebastian

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: 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
32
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.