Skip to content

How to link a pdf which opens a pdf-viewer in GitHub pages #21720

Answered by fabitmart
fabitmart asked this question in General
Discussion options

You must be logged in to vote

Thank you so much, you have been most helpful and kind.

For those who might be reading this because of a similar issue, I want to point out two minor things:

  1. The depository was already the one pertaining to my GitHub Pages. The issue was that by calling it as above, I was (I think) effectively treating it as an external depository;
  2. Once I used the correct method for calling the file, it worked. The only thing I had  to change (relative to your suggestion) was that I had to delete the firts “/” you put in your path.

The working solution was:

<a href="pdfs/ProjMarr_slides.pdf" class="image fit"><img src="images/marr_pic.jpg" alt=""></a>

instead of

<a href="/pdfs/ProjMarr_slides.pdf" clas…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants