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
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.contentWindow‘ I’d like to understand.
best
Cristian Zerbinati
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
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
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
Hi Cristian,
which PDFViewerType/Browser are you using?
Best regards
Frank
Please login first to submit.