EN
Github - how to display raw PDF from github repository in web browser instead of download?
6 points
I have in github repository PDF and I'd like to display it in browser.
Is there a way to do it like with java file, when we display it as raw file it seems to work fine eg:
but when we do it with PDF file we are forced to downlaod it like this:
- We can solve this problem with Google Docs viewer
xxxxxxxxxx
1https://docs.google.com/viewer?url=here_goes_link_to_our_github_raw_pdf_file
-
Example
xxxxxxxxxx
1https://docs.google.com/viewer?url=https://raw.githubusercontent.com/dirask/dirask-tutorials/master/dirask-tutorials-java/src/main/java/com/dirask/java_coding_convention/Java_Coding_Style_Guide.pdf
-
Link from above example:
-
Screenshot: