I am trying to display a pdf file using this code:
<object class="ss-pdfjs-viewer" id="pdfDocument" runat="server" data= "Documents/test1.pdf" type="application/pdf" allowfullscreen webkitallowfullscreen >
<iframe class="ss-pdfjs-viewer" id="test" src="https://docs.google.com/viewer?url=https://localhost:44307/WebForm1&embedded=true&allowDownload=true&allowPrint=true" allowfullscreen webkitallowfullscreen></iframe>
</object>
The above code works fine. The issue is this pdf file called test1.pdf is stored in my application path. Is it possible to show a pdf file from a network path instead of the application path for e.g. if I have test1.pdf file stored at this location:
\\web-d\test\path\test1.pdf.
what should I do if I need to display this pdf file from my network path rather than application path. I tried doing this and it didnt work, it didnt display anything on the web page:
<object class="ss-pdfjs-viewer" id="pdfDocument" runat="server" data= "\\web-d\test\path\test1.pdf" type="application/pdf" allowfullscreen webkitallowfullscreen >
<iframe class="ss-pdfjs-viewer" id="test" src="https://docs.google.com/viewer?url=https://localhost:44307/WebForm1&embedded=true&allowDownload=true&allowPrint=true" allowfullscreen webkitallowfullscreen></iframe>
</object>
any help will be greatly appreciated.