jekyll-pdf-embed 1.0.4
Install from the command line:
Learn more about RubyGems packages
$ gem install jekyll-pdf-embed --version "1.0.4"
Install via Gemfile:
source "https://rubygems.pkg.github.com/mihajlonesic" do
gem "jekyll-pdf-embed", "1.0.4"
end
About this version
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:
group :jekyll_plugins do
gem "jekyll-pdf-embed"
end
And then execute:
$ bundle
Alternatively install the gem yourself as:
$ gem install jekyll-pdf-embed
and put this in your _config.yml
plugins:
- jekyll-pdf-embed
You can use external PDF files
{% pdf "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" %}
or local
{% pdf "/files/pdf/sample.pdf" %}
Use no_link
to hide link to pdf file ('View PDF' header)
{% pdf "/files/pdf/sample.pdf" no_link %}
You can also embed PowerPoint presentations!
{% pdf "http://img.labnol.org/di/PowerPoint.ppt" %}
Your file must end with .pdf
or .ppt
. Everyting else is forbidden.
The embedded pdf output