Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
124 views

Hi,

I'm testing the PDF Signature demo shown in this Telerik example PDF Signature demo. The issue I'm having is I cannot pull a pdf that resides on a network file server where we store all common files. I have no issues loading a pdf on my localhost machine. 

From what I can tell, the issue appears to be the third party opensource pdf.js file Telerik is using in demo that seems confined to only load pdf's from directories within the web application and it's sub-folders defined in IIS for the website. Also, the network file server is used everywhere within our web application so it's not a security issue. 

The error I get from pdf.js is "Not allowed to load local resource" which results in page prompt "PDF file fails to process." display. 

We have an existing web.config entry that looks like this:

<add key="AttachmentsShare" value="\\my_file_server\file"/>

I've tried calling the file server a few different ways with no luck.

RadPdfViewer1.PdfjsProcessingSettings.File = ConfigurationManager.AppSettings("AttachmentsShare") & "1234.pdf"

RadPdfViewer1.PdfjsProcessingSettings.FileSettings.Url = ConfigurationManager.AppSettings("AttachmentsShare") & "1234.pdf"

Please advise. Thanks. 

Disposable Hero
Top achievements
Rank 1
Iron
 answered on 24 May 2024
2 answers
423 views

Hi,

I was very pleased to see the addition of the RadSignature-control to the Telerik UI for ASP-NET AJAX suite, however there are some functionalities, which we would require to properly make use of this control.

  1. If one wants to read the resulting signature server-side (after a button-click / form submission), one kind of has to work with a lot of javascript and hidden input fields to transfer the base64-encoded png towards the server. It would be way nicer, if you could provide the content of the signature as a server-side property of the RadSignature-control (during post-back).
  2. Relating to 1.: I've managed to use the client-event OnChange to write a hidden field each time the signature changes, but there's no event to hook in case of a reset; therefore I cannot detect resets to reset the value of the hidden field. (And let's just say, it's infeasible to us to read the signature-content on form submission because of dynamically generated controls.) Thus I cannot use the built-in reset button, but I would have to implement it myself to be able to reset the hidden field and the signature-control at the same time (using the js-method "reset" of the kendo widget).
  3. If one opens a dialog/window containing a RadSignature-control and resizes the dialog (e.g. make it twice as large) then the position of the cursor on the canvas does not match the position of the strokes anymore. Painting in the top-left corner is sort of okay/close, but the further one moves the cursor towards the bottom-right, the bigger the offset will be.
  4. It would be great, if the control would provide functionality to validate for mandatory user input. I.e. I (as a developer) don't want to have to memorize/manage a variable focusedSignatureDefaultContent (c.f. docs for RadSignature) for each RadSignature-control I want to put on a page. Best case, the RadSignature control manages this data for me and I can either read a boolean to determine if its contents have changed (client- and especially server-side).

And some other bugs, I've stumbled upon (- which are not as relevant to us):

  • If you paint a stroke on the canvas, then "maximize" the RadSignature-control (effectively zooming in on the control) and then paint a second stroke, you'll see that those strokes will have a different line width; the second one being bigger.
  • If you repeatedly maximize/minimize the RadSignature control and draw a stroke each time on the bottom of the canvas, then the resulting image will get distorted.

If you need any further information on any of those topics, feel free to ask.

Kind regards,
Matthias

Matthias
Top achievements
Rank 2
Iron
 answered on 15 May 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?