Jekyll PDF Embed is a ruby gem for Jekyll static site generator. It allows user to easily embed external or local PDF files to any page or blog post.
Add this line to your Gemfile:
And then execute:
Alternatively install the gem yourself as:
and put this in your _config.yml
Install from the command line (you can put any version you want, check the latest):
Alternatively, install via Gemfile:
Your file must end with .pdf
, .ppt
or .pptx
. Everyting else is forbidden.
You can use external PDF files
or local
Use front matter
Use no_link
to hide link to pdf file (‘View PDF’ header)
Use width
and/or height
parameters to size the container. Default values are width=100% and height=650px.
Order does not matter, and can be used in combination with no_link parameter.
You can also embed PowerPoint presentations!
The embedded pdf output
PDF output without link
Custom size
PowerPoint presentation