- 使用PDF Embed API实现简历预览
- 通过Github Pages实现简历预览
(预览若有未渲染成功的情况, 请刷新或重新进入链接)
访问Github链接下载简历
-
使用PDF Embed API, 依赖于Google Docs Viewer.
在markdown中嵌入以下代码:
<iframe src="https://docs.google.com/viewer?url=https://github.com/Kang-Jay/KangJay/raw/main/Resume.pdf&embedded=true" style="width:100%; height:1100px;" frameborder="0"></iframe>
-
在PDF Embed API基础上借用Github Pages, 创建仓库并建立index.html.
在html中嵌入以下代码:
<iframe src="https://docs.google.com/viewer?url=https://github.com/Kang-Jay/KangJay/raw/main/Resume.pdf&embedded=true" style="width:100vw; height:100vh;" frameborder="0"></iframe> <style> body{ margin: 0; } </style>
形成与第一种方法类似的效果. 如果想要做其他更改可以自己撰写html文件.
Github上创建仓库, 设置分支, 上传PDF文件, 按照以下格式访问对应链接:
https://github.com/<user-name>/<repo>/raw/<branch>/<path-to-pdf>.pdf