My objective was to get the page number on the event “mouseClick”. However I have the feeling that none of the events are “triggered” within this component.
First I tought I had done something wrong so I just put:
print "mouse clicked :)"
In the event handler “mouseClicked” of the PDF Viewer component. Unfortunately I don’t see anything in the console output even after clicking several times. (I’ve tested other event handlers and none of them seem to work).
Here is some recent forum activity that may be of use:
ignitionusermanualexport.zip\doc79\pdf-viewer_8227280.html (this assumes you downloaded the manual )
Finally, if you are in a hurry, you may wish to first check out the policies, then send an e-mail or call starting at the following link: https://support.inductiveautomation.com
I hope this helps… it gave me some understanding about the IA Labs PDF Viewer module ( now deprecated ).
The PDF viewer component is our integration of an “off the shelf” library. Without investigating it too far, it’s likely that we aren’t doing the required shenanigans in Java Swing to allow custom mouse events to fire. That might just be an oversight, but it’s equally possible that it’s not possible to introduce custom mouse event handlers without breaking the actual component. Again - I don’t know for sure, but there’s a decent chance that’s the case. I would recommend getting in contact with support to see if there’s a workaround (maybe overlaying a transparent label, and intercepting mouse events on it?) or so that they can file a bug ticket if this indeed is something we can simply implement.
Thanks a lot that’s the confirmation of my observations.
I already tested to put a transparent control in front of my PDF but it doesn’t work and moreover since I click on the control and not on the PDF Viewer the hyperlink is not triggered.
I’ve already opened a support ticket, they ask me ton install TeamViewer to get a remote access to check my code… It’s not a question of checking my code, because I’ve tested the event with just a print …