Hi,
Just change below code of article
var object = "<object data=\"{FileName}\" type=\"application/pdf\" width=\"500px\" height=\"300px\">";
with
var object = "<object data=\"{FileName}#toolbar=0&navpanes=0\" type=\"application/pdf\" width=\"500px\" height=\"300px\">";
I hope this will help you out.