I want to retrieve the active PDF page of the PDF Viewer component. I’ve already done this inside a script of a button:
target = event.source.parent.getComponent('PDF Viewer') swingController = target.getController() event.source.parent.getComponent('random_label').text = str(swingController.getCurrentPageNumber())
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).
PS: I’m on Ignition 7.9.12.