Question: I am using the below code to open a pdf file but its not working-

```
<iframe src="file:///C:\Users\Downloads\0895custbill08132015.pdf" style="height: 638px;" frameborder="0"></iframe>

```

For a google doc the below code is working fine, I am not sure what is required to open a locally saved doc.

```
<iframe src="http://docs.google.com/gview?url=http://webshire-aioopsss.com/pdfs/sample_contract.pdf&embedded=true" style="height:638px;" frameborder="0"></iframe>

```

Answer: 
Most browsers won't let you open a locally stored file from a website for security reasons. Typically I will host the file on an IIS server and then retrieve it from there (which is what you're doing when you're retrieving it from googledoc).
You can use 
 var pdf = $('\<\object type="application/pdf">');
 pdf.attr('data', "you pdf scr");
append it in your iframe..