Unplanned
Last Updated: 14 Oct 2021 11:17 by Dome

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]
Unplanned
Last Updated: 04 Oct 2021 07:50 by ADMIN
Created by: Velusamy
Comments: 2
Category: PDFViewer
Type: Feature Request
5

Dear Team,

As like in other frameworks (https://pspdfkit.com/) we should have the in built option to rotate the PDF pages using Kendo UI PDFViewer widget.

https://web-examples.pspdfkit.com/annotations?i=7KSM53H6QBTN7G45WA030T9C0R.C3YbvdyO2FG3Et1PMQ1btA.KV3y

 

 

Regards,

Velusamy

Unplanned
Last Updated: 22 Sep 2021 07:22 by ADMIN
Created by: Dave
Comments: 0
Category: PDFViewer
Type: Feature Request
0
It would be awesome if the PDFViewer control could be configured to display two pages side-by-side like a flipbook.
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: 25 Jun 2021 15:04 by Jean Yves
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

 

Unplanned
Last Updated: 01 Jun 2021 12:59 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: 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: 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

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.

Unplanned
Last Updated: 13 Feb 2021 07:51 by ADMIN
Created by: mike
Comments: 4
Category: PDFViewer
Type: Feature Request
16
I have created the PDF viewer and it works ok with most of PDFs except for those that have electronic signature. The signature section is blanked out. Would you have any fix or workaround for the problem?
Unplanned
Last Updated: 22 Jan 2021 08:31 by ADMIN
Created by: Greg
Comments: 1
Category: PDFViewer
Type: Feature Request
5

Hello,

I have an 8mb PDF files that I need to be able to search, however when I click on the search tool the entire page starts responding.

This issue happens in your hosted demo. It seems to come as a result of images in the PDF.

What do I need to do to have it work properly?

Thanks,

Greg

Unplanned
Last Updated: 04 Dec 2020 13:41 by James Shelton Agar

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: 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!
Unplanned
Last Updated: 29 May 2020 13:48 by ADMIN
Created by: moegal
Comments: 2
Category: PDFViewer
Type: Feature Request
2
How can I add a button for full screen/exit full screen for the pdf viewer. I would like to keep the navigation
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.

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: 21 Feb 2020 13:59 by ADMIN
Created by: Graham
Comments: 1
Category: PDFViewer
Type: Feature Request
1

Hi,

 

Is a thumbnail/page viewer in discussion? It would be a real advantage to be able to see thumbs of pages alongside the page viewer.

An example using a different sdk is shown below.

URL:

http://atalasoft-viewer-demo.azurewebsites.net/

 

Regards,

Graham O'Riley

Netdocs

Unplanned
Last Updated: 05 Feb 2020 11:22 by ADMIN
Created by: Bilal
Comments: 2
Category: PDFViewer
Type: Feature Request
18

I have experience with OpenText Brava Enterprise. I've had the chance to integrate their Viewer in our in-house document management system. This viewer opens up to 100 file formats and allows to add/remove/edit annotations on files and saves these annotations as a separate layer on top of the file. So next time you open the same file to view, you can load the annotations (via API) calls and place the layer of annotations on top.

I was hoping I would see the same thing with Telerik PDF Viewer (and I am aware this works only for PDF). To allow the user to add a Text comment, Shapes, Stamps, Image, PDF Bookmark, etc.

Unplanned
Last Updated: 03 Feb 2020 14:50 by ADMIN
Created by: Christopher
Comments: 1
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.

Unplanned
Last Updated: 03 Feb 2020 08:55 by ADMIN
Created by: Justin
Comments: 0
Category: PDFViewer
Type: Feature Request
7

Both Chrome and Firefox now have native PDF viewer support including the ability to display and navigate bookmarks within the document.  Kendo’s control doesn’t have this functionality, but it’s possible to implement since PDF.js does and the Kendo control supports PDF.js rendering.

We’d really like to have a common UI for viewing documents within our web application, but we’re currently forced to render PDFs natively for Chrome and Firefox and with limited bookmark functionality for Internet Explorer by way of partial bookmark functionality we’ve implemented on top of the Kendo control.

Allow bookmarks to be set in the PDFViewer’s configuration during initialization, and then add a method to allow them to be scrolled-to by id.  The bookmarks would simply be y-coordinate/page number pairs. It’d also be nice if the viewer could read the bookmarks directly, but not entirely necessary with PDF.js rendering since they can be read from PDF.js

Ideally, you could also expose the raw PDF.js document object used by the PDFViewer so that it could be used instead.

1 2