Help PdfViewer call function from wisej

0
0

Hi,

I need help.

I must hide the PdfViewer toolbar and add custom wisej button in a form, that call some function for example ZoomIn ZoomOut Page….

how I can call this function from a Wisej button?

best

Cristian

  • You must to post comments
0
0

Hi Alaa,

thank you your code works perfectly, I have see page++ and page– too!!!

I understand how you find ‘PDFViewerApplication.zoomIn’ but I don’t understand how do you have find this

‘this.__objectEl.__element.contentWindowI’d like to understand.

best

Cristian Zerbinati

  • You must to post comments
0
0

Hi Cristian,

In addition to my previous answer, I have attached a sample that replicates your goal.

You’ll find a “hidden” toolbar, see viewer.css at the end of the file level.
And the functionality to zoom in and out of the document using Wisej.NET’s buttons.

Unfortunately, due to the size limit here, you’ll have to add the missing pieces of the Pdf.js source code into the sample.

HTH,
Alaa

  • You must to post comments
0
0

Hi Cristian,

You’ll need to use the Eval(“some_script_or_function_name”) or Call(“function_name”) to execute or call JavaScript functions from within Wisej.NET.

For more info, please check out this link here: Wisej.NET Documentation | Application – JavaScript

HTH,
Alaa

  • You must to post comments
0
0

Hi Frank,

ViewerType Mozzilla on Firefox browser

I have download the source of pdfjs-2.6.347 and in the pdfviewer I have insert the path of the viewer in “ViewerURL” property.

It works, but I need to call function from wisej

best

  • You must to post comments
0
0

Hi Cristian,

which PDFViewerType/Browser are you using?

Best regards
Frank

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.