Completed
Last Updated: 09 Apr 2024 14:50 by ADMIN
Release 2024 Q2
Laurentiu Stamat
Created on: 09 Apr 2024 09:34
Category: PdfViewer
Type: Bug Report
1
Text cannot be selected in PDFViewer with pdfjs v3.4.120+

Bug report
Text cannot be selected in the RadPdfViewer with pdfjs v3.4.120 or newer.

Current behavior
Text cannot be selected

Expected/desired behavior
Text should be selectable

 

Reproduction demos:

Example 1

    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.sandbox.min.js"></script>
    
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf_viewer.min.js"></script>
    <script type="text/javascript">
        window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.js';
    </script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf_viewer.min.css" type="text/css" rel="stylesheet" />

t>

    <telerik:RadPdfViewer ID="TKPdfViewer" runat="server" Width="100%">
        <ToolBarSettings Items="pager, zoom, toggleSelection, search, download, print, spacer" />
        <PdfjsProcessingSettings File="TestPDF.pdf">
        </PdfjsProcessingSettings>
    </telerik:RadPdfViewer>

Example 2

    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.sandbox.min.js"></script>
    
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.worker.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf_viewer.min.js"></script>
    <script type="text/javascript">
        window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.worker.js';
    </script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf_viewer.min.css" type="text/css" rel="stylesheet" />

t>

    <telerik:RadPdfViewer ID="TKPdfViewer" runat="server" Width="100%">
        <ToolBarSettings Items="pager, zoom, toggleSelection, search, download, print, spacer" />
        <PdfjsProcessingSettings File="TestPDF.pdf">
        </PdfjsProcessingSettings>
    </telerik:RadPdfViewer>

1 comment
ADMIN
Rumen
Posted on: 09 Apr 2024 13:58

Hi Laurentiu,

Thank you for reporting the problem! I have good news that it is already addressed and the fix will go in the upcoming 2024 Q2 release, due in mid-May.

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources