PDF to Github Flavored Markdown

天大地大妈咪最大 提交于 2021-02-04 12:27:02

问题


I have a project description in PDF and I will be quite happy if I can somehow manage to preview it in github website rather than clicking "View Raw" and downloading it.

I thought there could be a converter from pdf to github flavored markdown yet found none.

To state again, my input is a pdf file and my desired output is the preview the contents of the pdf in github website without downloading it.


回答1:


Update March 2015: "PDF Viewing"!

Simply browse to a PDF document and we'll render it in your browser like any other file.
From presentations to papers, we've got you covered.
Many thanks to Mozilla and every contributor to PDF.js.

https://cloud.githubusercontent.com/assets/2546/6703741/cbb216c0-ccfc-11e4-9c15-ecb6a33e8ddb.gif


Original answer (October 2014)

This is simply not (yet?) supported in GitHub.

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.
See that example on jsbin.



来源:https://stackoverflow.com/questions/19362931/pdf-to-github-flavored-markdown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!