Jekyll plugin for embedding PDF files to any page or post


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"

And then execute:

$ bundle

Alternatively install the gem yourself as:

$ gem install jekyll-pdf-embed

and put this in your _config.yml

  - jekyll-pdf-embed


You can use external PDF files

 {% 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 "" %}

Your file must end with .pdf or .ppt. Everyting else is forbidden.


The embedded pdf output

PDF output without link

PowerPoint presentation