Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display PDF in GitHub Markdown

This is quite similar to what is being asked in this post, but the post does not seem to work for GitHub's parsed Markdown.

Simply put, let us say I have a PDF in a GitHub repository. Is there any way to render/embed that in a markdown file that is in the repository (e.g. the README.md file)?

I would also be open to having the PDF in a location other than GitHub and linking to it from the markdown file if that is what is required to make this work.

like image 227
Gigi Bayte 2 Avatar asked Sep 09 '25 21:09

Gigi Bayte 2


1 Answers

Currently there is no way to preview a pdf in github markdown, however you can embed an image of the pdf.

Edit
From here:

The best you can do is a greasemonkey extension which would allow you to call a pdf viewer, like the recent pdf.js (a Portable Document Format (PDF) viewer that is built with HTML5.), allowing you to view a pdf entirely online, without any pdf plugin installed.

like image 144
atin Avatar answered Sep 12 '25 12:09

atin