the functionality is not working and it's showing like HTTP 404 not found
It depends on this:
var url = "LIP-178(10-09).pdf";
The URL mentioned if relative needs to be correct. Or else, provide an absolute path.
404 simply means the URL/location at which you pointed the PDF is incorrect and the path needs a correction.