Pdf viewing in browser without downloading


I am using inAppBrowser to open a link in systems default browser. The link is of a pdf and as soon as the link opens it tries to download it. I want to open the pdf in browser itself without any option of downloading it.