Opening PDF in a browser with Github Pages

后端 未结 8 1707
面向向阳花
面向向阳花 2021-01-31 09:48

I am using GitHub Pages to host my website. I have a PDF file that I want visitors to be able to open directly in a browser. But when I upload the PDF file to GitHub Pages and l

8条回答
  •  醉话见心
    2021-01-31 10:36

    It's very easy to display Pdf in browser from Github static page, for that you need approach following process,

    1. Make the static website/repository using your Github username, for example, if the username is sumanbogati then repository would be sumanbogati.github.io
    2. Put the desired pdf in that repository
    3. Now locate the Url of Pdf wherever you want

    For example, to display pdf in Html web page

    
    

    This is an instant demo.

提交回复
热议问题