I have a PDF on my website. It works fine when on a computer, but on a phone, there is an extra step for the user. After going to the link with the PDF, they then have to click a link to view it. Is there anyway I can bypass this link? I am assuming not for security reasons, but figured I'd take a shot.
<object data="Resources\myPDF.pdf" type="application/pdf" width="100%" height="100%"> <p><a href="Resources\myPDF.pdf">It looks like you are on a phone. No worries though, just click on this text to view my PDF in your mobile browser.</a></p> </object>
If on a computer, myPDF.pdf opens and is shown in the browser when navigated to the page containing the above code. However, when on a browser, the link needs to be clicked in order to view myPDF.pdf. The only thing on the page is myPDF.pdf, so it is OK if nothing else is on the page. Any ideas?
I am looking for a generic solution for all phones, but the only phone I have actually been able to test it on is an iPhone using Safari. Other browsers may give a different result or require a different solution than the scenario I described above.