which Property |
Gets a value representing the PDF object added to the currently loaded document.
This property is read-only and should not be set to.
//declare event handler function (which accepts an object of type ObjectClickEventArgs as an argument) function objectKeypressHandler(evt) { //make the new object unmovable evt.obj.setProperties( {"movable" : false} ); //if this is the letter A if(evt.which == 65) { //cancel the default keypress action evt.cancel = true; } } //get API class var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance //attach event handler to objectClick event myApi.addEventListener("objectKeypress", objectKeypressHandler);