Click or drag to resize

obj Property

Gets a value representing the PDF object added to the currently loaded document.

Syntax
JavaScript
this.obj;

Property Value

Type: PdfObject Class

The PDF object assciated with this event.

Remarks

This property is read-only and should not be set to.

Examples
The following example uses the ObjectEventArgs Class to handle the "objectSelected" event of the PdfWebControlApi Class.
JavaScript
//declare event handler function (which accepts an object of type ObjectEventArgs as an argument)
function objectSelectedHandler(evt)
{
    //make the new object unmovable
    evt.obj.setProperties( {"moveable" : false} );
}

//get API class
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance

//attach event handler to objectSelected event
myApi.addEventListener("objectSelected", objectSelectedHandler);
See Also