Unplanned
Last Updated: 04 Mar 2021 10:10 by ADMIN
Created by: Janson
Comments: 1
Category: PDFViewer
Type: Feature Request
1

The PDF.js library supports sending xhr with credentials. Please expose this option so credentials can be specified.

Completed
Last Updated: 13 Jan 2024 18:45 by ADMIN

Additional blank page is added in Chrome when printing a file with specific size.

A reproduction file for the problem can be found in Ticket ID: 1521806.

Completed
Last Updated: 20 Jul 2021 12:12 by ADMIN
Release 2020.R1.SP.next

Bug report

Currently the result of PDFViewer printing is affected by PDFViewer scale option. When scale is less than 200%, the letters in the printed PDF appear blurred.

Reproduction of the problem

  1. Go to https://demos.telerik.com/kendo-ui/pdfviewer/index
  2. Set scale option to 100%
  3. Print to PDF using "Microsoft Print to PDF" printer. (The final result is the same compared to actual printing to a physical printer)
  4. For consistency set the following print options, e.g. in Chrome:
  • Paper size: A4
  • Pages per sheet: 1
  • Margins: None
  • Scale: Default

Current behavior

Text in printed PDF file is blurred

400% to 100%

Expected/desired behavior

Text in printed PDF file is clear.
NOTE: Clear text may be achieved if PDFViewer scale option is set to 400% on the demo before printing.

Environment

  • Kendo UI version: 2019.3.1023
  • Browser: all
Unplanned
Last Updated: 07 Aug 2020 19:55 by ADMIN
Created by: Abe
Comments: 0
Category: PDFViewer
Type: Feature Request
1
Hello,

I would like to request the Kendo UI PDFViewer to allow the functionality of containing multiple pdfs.  Additionally, include a way for the user to cycle through them like having next and previous buttons.

Thank you!
Completed
Last Updated: 07 Feb 2022 12:04 by ADMIN
Release 2022.R1.SP.next

Bug report

When trying to print a file from the PDF Viewer, if the user wants to use the system print dialog, the printing dialog gets closed, but the system dialog does not appear.

Reproduction of the problem

  1. Open the Pdf Viewer Demo
  2. Click print
  3. Then scroll and select "Print using system dialog"

Current behavior

The printing dialog gets closed and the system dialog does not appear. (screencast)

Expected/desired behavior

The system printing dialog should appear

Environment

  • Kendo UI version: 2020.3.1118
  • Browser: [Chrome | Edge ]

.

Unplanned
Last Updated: 27 Oct 2022 08:40 by Simon
Created by: Simon
Comments: 0
Category: PDFViewer
Type: Bug Report
1

Bug report

When the PDFViewer is created and a file is loaded using the fromFile method a new thread will be created. That thread remains in memory and doesn't get destroyed when the entire widget is destroyed.
$("#pdfViewer").data("kendoPDFViewer").destroy(); $("#pdfViewer").empty();

Reproduction of the problem

  1. Open the Dojo
  2. Open the 'Memory' tab in the Developer tools
  3. Click the 'Create' and then click the 'Destroy' button

Current behavior

That created thread remains in memory and doesn't get destroyed.

Expected/desired behavior

The thread should get destroyed when the widget is destroyed.

###Workaround
A possible workaround:
kendoPDFViewer.processor.pdf.loadingTask.destroy();

The issue should be additionally researched as there are some leftovers in the JS Heap even when the workaround is used.
image

Environment

  • Kendo UI version: 2022.3.913
  • Browser: [all ]
Completed
Last Updated: 19 Jun 2024 07:02 by ADMIN
Release 2024 Q3 (Aug)
Created by: Mark
Comments: 0
Category: PDFViewer
Type: Bug Report
1

### Bug report

The PDFViewer requires the "unsafe-inline" keyword in the "style-src" directive.

### Reproduction of the problem

1. Enable CSP and set the "style-src" directive to "self":

<meta http-equiv="Content-Security-Policy" content="style-src 'self' https://kendo.cdn.telerik.com;"/>

2. Create a PDFViewer:

<div id="pdfviewer"></div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.min.js"></script>
<script>
    window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.worker.min.js';
</script>
<script>
    $("#pdfviewer").kendoPDFViewer({
        pdfjsProcessing: {
            file: ""
        }
    });
</script>

A Dojo sample for reproduction: https://dojo.telerik.com/ugAyagIJ

### Current behavior

When the PDFViewer is initialized, the following Content Security Policy error is thrown:

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' https://kendo.cdn.telerik.com".

### Expected/desired behavior

The the 'unsafe-inline' keyword must not be required in the "style-src" directive when using the PDFViewer widget.

### Workaround:

Add the following script before the PDFViewer initialization:

<script>
    var styles = {
        scroller: "k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto"
    };
    kendo.ui.PDFViewer.fn._renderPageContainer = function () {
        var that = this;

        if (!that.pageContainer) {
            that.pageContainerWrapper = $("<div />");
            that.pageContainerWrapper.addClass(styles.scroller);

            that.pageContainer = $(`<div class="k-pdf-viewer-pages" />`);
            that.pageContainer.css('--scale-factor', that.zoomScale);
            that.pageContainer.attr("tabindex", 0);

            that.pageContainerWrapper.append(that.pageContainer);
            that.wrapper.append(that.pageContainerWrapper);
        }
    };
</script> 

### Environment

* **Kendo UI version: 2024.2.514
* **jQuery version: 3.7.0
* **Browser: [all]

Unplanned
Last Updated: 26 Jun 2024 10:22 by Samantha

Bug report
PDFViewer focuses zoom input when the user clicks on zoom-in icon in Safari on iPhone and iPad

Reproduction of the problem

Dojo: https://dojo.telerik.com/AvOZeriz

Click on zoom in icon

Expected/desired behavior
Focus shall remain on the zoom in icon

Environment
Kendo UI version: [all]
Browser: [Safari]

Unplanned
Last Updated: 22 Apr 2020 14:48 by ADMIN
Created by: RDot
Comments: 0
Category: PDFViewer
Type: Feature Request
0

Currently it is not possible to bind the PDFViewer to a file from the view model:

<div data-role="pdfviewer"
             data-pdfjs-processing-file="{file: fileToLoad}"
             data-width="100%"
             data-height="700"
             data-bind="events: { source: }">
 </div>

<script>
  var viewModel = kendo.observable({
      	fileToLoad: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
  }
</script>

Unplanned
Last Updated: 22 May 2020 11:37 by ADMIN
Created by: Marcel
Comments: 1
Category: PDFViewer
Type: Feature Request
0

Hi,

currently i found an workaround for the request but a native support would by cool. Token in url is no alternative

 

Workaround:

axios({
	url: `${config.apiUrl}/Page/pdf/` + id,
	method: 'GET',
	responseType: 'blob',
	headers : {
		"Authorization": authHeader().Authorization
	}
}).then((response) =>{
	var fileReader = new FileReader();
	fileReader.readAsDataURL(response.data);
	fileReader.onload = function(e){
		var pdfViewer = $("#documentViewer").data("kendoPDFViewer");
		if(!pdfViewer){
			pdfViewer = $("#documentViewer").kendoPDFViewer({
				pdfjsProcessing: {
					file: {
						data: e.target.result.split(",")[1]
					}
				},
				width: "100%",
			}).data("kendoPDFViewer");
		}else{
			console.log("fromFile function");
			// pdfViewer.fromFile(`${config.apiUrl}/Page/pdf/` + id);
			pdfViewer.zoomScale = pdfViewer.options.scale || 1.25;
			pdfViewer.trigger("update", { action: "zoom", zoom: pdfViewer.options.scale || "auto" });
			pdfViewer.options.pdfjsProcessing.file.data = e.target.result.split(",")[1];
			pdfViewer._loadDocument();
		}
	}
})

 

Added by admin:

The request is a valid one but it should be extended outside the context of Axios. It will be a good feature to introduce a general approach for fetching a file dynamically - jQuery, Axios, etc.

Completed
Last Updated: 07 Feb 2022 12:06 by ADMIN
Release 2022.R1.SP.next
Created by: Christopher
Comments: 2
Category: PDFViewer
Type: Bug Report
0

The print functionality does not work when using chrome on android and safari on iphone. 

I tested at the url https://demos.telerik.com/kendo-ui/pdfviewer/index

Please advise.

Completed
Last Updated: 15 Oct 2019 14:24 by ADMIN
Release 2019.R3.SP.next

Bug report

The download functionality of the PDFViewer component doesn't work on Apple mobile devices both on Chrome and Safari browsers.

*Note: The above behavior is not represented on Android devices.

Reproduction of the problem

  1. Open this demo https://demos.telerik.com/kendo-ui/pdfviewer/indexon iPad or iPhone
  2. Tap on the "Download" icon of the PDFViewer.

Current behavior

Nothing happens when the Download icon is tapped. After this tapping part of the other component functionalities like "open" and "search" stop working.

Expected/desired behavior

When the download icon is tapped a "save file" popup should appear and the user can save the currently viewed PDF file.

Environment

  • Kendo UI version: 2019.3.917
  • jQuery version: x.y
  • Browser: [Chrome 77.0.3865.69 | iOS 12.4.1 Safari ]
Completed
Last Updated: 26 May 2021 08:34 by ADMIN
Created by: Christian
Comments: 6
Category: PDFViewer
Type: Bug Report
0

Hello,

 

i have some problems with the updated pdf viewer.

Print

The new print feature failed after the second print call.

Reproduction steps

  1. call https://demos.telerik.com/kendo-ui/pdfviewer/index
  2. click on print
  3. abort browser print dialog
  4. call again, there is no content in the print dialog preview or output

 

Search

Furthermore the search wont work for me, i get only an browser alert and console log entry.

console log on init

jquery-3.4.1.min.js:2 Uncaught (in promise) Error: Syntax error, unrecognized expression: <span>
    at Function.se.error (jquery-3.4.1.min.js:2)
    at se.tokenize (jquery-3.4.1.min.js:2)
    at se.compile (jquery-3.4.1.min.js:2)
    at se.select (jquery-3.4.1.min.js:2)
    at se (jquery-3.4.1.min.js:2)
    at Function.se.matches (jquery-3.4.1.min.js:2)
    at Function.k.filter (jquery-3.4.1.min.js:2)
    at F.fn.init.k.fn.<computed> [as parent] (jquery-3.4.1.min.js:2)
    at F.fn.init.unwrap (jquery-3.4.1.min.js:2)
    at init.processTextNode (kendo.all.js:158104)

 

console log on search

Uncaught TypeError: Cannot read property 'matches' of undefined

 

I try to show the pdf viewer in an kendo window, is there any problem known?

 

Beste regards

Christian

Completed
Last Updated: 11 Oct 2019 11:54 by ADMIN
Release 2019.R3.SP.next

Bug report

When jQuery 3.4.1 is used paging through PDF file content results in wrong scroll position and no content in PDFViewer

Reproduction of the problem - sample file 1

  1. Use the following setup:
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,user-scalable=1,initial-scale=1.0" />
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.3.917/styles/kendo.common.min.css">
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.3.917/styles/kendo.rtl.min.css">
    <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2019.3.917/styles/kendo.default.min.css">

    <!-- <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> -->
    <!-- <script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> -->
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>

    <script src="https://kendo.cdn.telerik.com/2019.3.917/js/kendo.all.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>
    <script>
    window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
    </script>
</head>
<body">
    <div id="pdf-viewer"></div>
    <script>
        (function () {
            var viewer = $("#pdf-viewer").kendoPDFViewer({
                pdfjsProcessing: {
                 file: "./Export_numbered.pdf"
                }
            }).getKendoPDFViewer();
        })();
    </script>
</body>
</html>
  1. Use the following sample PDF - Export_numbered.pdf

  2. Click on Next page button 3 times:
    image

  3. Click on Next page button once again

Current behavior

Pager shows page 5, but there is no content displayed. Scrolling over the PDFViewer scrolls and displays the content.

Expected/desired behavior

Pager shows page 5 and page 5 is visible on the top of the PDFViewer.
Reproducible when the jQuery version in the setup is changed to 1.12.4 or 2.2.4.

Reproduction of the problem - sample file 2

  1. Use the setup above with the PDF file from demos -
    sample.pdf
  2. Click on Next page button 2 times:

Current behavior

Pager shows page 3, but there is no content displayed. Scrolling over the PDFViewer scrolls and displays the content.

Expected/desired behavior

Pager shows page 3 and page 3 is visible on the top of the PDFViewer.
Reproducible when the jQuery version in the setup is changed to 1.12.4 or 2.2.4.

Environment

  • Kendo UI version: 2019.3.917
  • jQuery version: 3.4.1
  • Browser: all
Completed
Last Updated: 09 Feb 2022 13:55 by ADMIN
Release 2022.R1.SP.next
Created by: Jean Yves
Comments: 2
Category: PDFViewer
Type: Bug Report
0

Tools' tooptips are localized and can be modified via messages. However, the tools in the overflow menu (when window size is resized) have the original tool text. 

Example: https://dojo.telerik.com/@iankodj/inuWOTUv

 

Completed
Last Updated: 17 Mar 2021 08:01 by ADMIN
Release 2021.R1.SP.next
Created by: Pawel
Comments: 1
Category: PDFViewer
Type: Bug Report
0

Hello,

Could you help me how we can turn on Selection on PDFViewer in jQuery Solution ?

https://demos.telerik.com/kendo-ui/pdfviewer/index

In the above solution I can not select any of the below options.

Best Regards

Pawel

Completed
Last Updated: 09 Feb 2022 13:58 by ADMIN
Release 2022.R1.SP.next

Bug report

When opening the Zoom ComboBox in the PDFViewer, the value is changed to NaN.

Reproduction of the problem

  1. Open this Dojo example - https://dojo.telerik.com/@martin.tabakov@progress.com/OCEpaCUr/2
  2. Open the Zoom ComboBox.

Current behavior

The value is changed to NaN.

Expected/desired behavior

The value should match one of the ComboBox items.

Environment

  • Kendo UI version: 2022.1.119
  • Browser: [all]
Unplanned
Last Updated: 22 Feb 2022 09:33 by Syed Mustafa
Created by: Syed Mustafa
Comments: 0
Category: PDFViewer
Type: Bug Report
0

Bug report

In PDFViewer, underlines increase size when zooming in/out.

Reproduction of the problem

  1. Open the PDFViewer Basic Usage demo - https://demos.telerik.com/kendo-ui/pdfviewer/index
  2. Open the attached file.
  3. Zoom in to 300% and then out to 50% several times.

Current behavior

The underlines increase their size.

Expected/desired behavior

The underlines should remain the same.

Environment

  • Kendo UI version: 2022.1.119
  • Browser: [all]
Completed
Last Updated: 19 Dec 2023 13:50 by ADMIN

Bug report

Opening a valid PDF file after trying to open a corrupted PDF file in the PDF Viewer throws a JavaScript error. As a result opening a valid PDF file is not possible.

Uncaught TypeError: Cannot read properties of null (reading 'sendWithStream')
    at PDFPageProxy.streamTextContent (api.js:1114)
    at PDFPageProxy.getTextContent (api.js:1132)
    at init._renderTextLayer (kendo.all.js:170740)
    at init.render (kendo.all.js:170727)
    at kendo.all.js:171384
    at Array.forEach (<anonymous>)
    at r.exec (kendo.all.js:171381)
    at init.execute (kendo.all.js:171959)
    at init.zoom (kendo.all.js:171949)
    at init.fromFile (kendo.all.js:172026)

Reproduction of the problem

  1. Navigate to the PDFViewer Demo
  2. Open a corrupted PDF file, for example CorruptedPdfFile.pdf
  3. Try to open a valid, working PDF file

Screencast

Current behavior

A valid PDF file cannot be opened after a corrupted file was loaded

Expected/desired behavior

It should be possible that a valid PDF file can be opened after a corrupted file has failed to be opened.

Environment

  • Kendo UI version: 2021.3.914
  • Browser: [all]
Completed
Last Updated: 13 Nov 2023 13:16 by ADMIN
Release R1.2024-Increment.1(15.Nov.2023)
Created by: BVZ
Comments: 1
Category: PDFViewer
Type: Bug Report
0

Hello!

In your dojo examples of your pdfViewer control you are loading pdf.js version 2.2.2 and with this setting you can select text inside the pdfViewer when the button "enable selection" is klicked.

https://dojo.telerik.com/eWUTEfeq

however, when i try to use the latest version of pdf.js (3.4.120) then the selection of text is not possible

https://dojo.telerik.com/IxuSuPuV

The last Version where it seems to work is pdf.js (3.1.81)

https://dojo.telerik.com/OxANudAx

Is this a known Issue? i don't like the idea of having to use such an old version of a js-library. Is this Problem related to kendo or to pdf.js?

Kind Regards,

Benjamin