{"id":14979469,"url":"https://github.com/mihajlonesic/jekyll-pdf-embed","last_synced_at":"2025-10-28T18:31:43.020Z","repository":{"id":56878721,"uuid":"207102767","full_name":"MihajloNesic/jekyll-pdf-embed","owner":"MihajloNesic","description":":page_facing_up: :pushpin: Jekyll plugin for embedding PDF and PowerPoint files to any page or post","archived":false,"fork":false,"pushed_at":"2023-02-27T11:44:02.000Z","size":33,"stargazers_count":51,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T18:24:03.166Z","etag":null,"topics":["embed","gem","jekyll","pdf","plugin","ruby"],"latest_commit_sha":null,"homepage":"https://mihajlonesic.gitlab.io/projects/jekyll-pdf-embed/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MihajloNesic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-09-08T11:31:36.000Z","updated_at":"2024-04-08T07:26:04.000Z","dependencies_parsed_at":"2024-01-14T04:54:06.040Z","dependency_job_id":"db51be6b-cee7-460e-9c87-cf18fd2a3322","html_url":"https://github.com/MihajloNesic/jekyll-pdf-embed","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"a427e21534dea74019519e73e049c08552221a8f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MihajloNesic%2Fjekyll-pdf-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MihajloNesic%2Fjekyll-pdf-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MihajloNesic%2Fjekyll-pdf-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MihajloNesic%2Fjekyll-pdf-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MihajloNesic","download_url":"https://codeload.github.com/MihajloNesic/jekyll-pdf-embed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238700405,"owners_count":19515918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embed","gem","jekyll","pdf","plugin","ruby"],"created_at":"2024-09-24T14:00:04.176Z","updated_at":"2025-10-28T18:31:42.707Z","avatar_url":"https://github.com/MihajloNesic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jekyll PDF Embed \n[![Gem Version](https://badge.fury.io/rb/jekyll-pdf-embed.svg)](https://badge.fury.io/rb/jekyll-pdf-embed) [![Ruby Gem](https://github.com/MihajloNesic/jekyll-pdf-embed/actions/workflows/gem-push.yml/badge.svg)](https://github.com/MihajloNesic/jekyll-pdf-embed/actions/workflows/gem-push.yml) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n**Jekyll PDF Embed** is a ruby gem for [Jekyll](https://jekyllrb.com/) static site generator.\nIt allows user to easily embed external or local PDF files to any page or blog post.\n\n## Installation\n\n\n### RubyGems\n\nAdd this line to your Gemfile:\n\n```ruby\ngroup :jekyll_plugins do\n  gem \"jekyll-pdf-embed\"\nend\n```\n\nAnd then execute:\n```shell\n$ bundle\n```\n\nAlternatively install the gem yourself as:\n\n```shell\n$ gem install jekyll-pdf-embed\n```\n\nand put this in your ``_config.yml`` \n\n```yaml\nplugins:\n  - jekyll-pdf-embed\n```\n\n### GitHub RubyGems registry\n\nInstall from the command line (you can put any version you want, check the latest):\n\n```shell\n$ gem install jekyll-pdf-embed --version \"1.1.1\" --source \"https://rubygems.pkg.github.com/mihajlonesic\"\n```\n\nAlternatively, install via Gemfile:\n\n```ruby\nsource \"https://rubygems.pkg.github.com/mihajlonesic\" do\n  gem \"jekyll-pdf-embed\", \"1.1.1\"\nend\n```\n\n## Usage\n\nYour file **must** end with `.pdf`, `.ppt` or `.pptx`. Everyting else is forbidden.\n\n### Basic\n\nYou can use external PDF files\n```\n {% pdf \"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\" %}\n```\n\nor local\n```\n {% pdf \"/files/pdf/sample.pdf\" %}\n```\n\nUse front matter\n```\n---\npdf_file: \"/files/pdf/sample.pdf\"\n---\n\n{% pdf {{ page.pdf_file }} %}\n```\n\n### Parameters\n\nUse `no_link` to hide link to pdf file ('View PDF' header)\n```\n {% pdf \"/files/pdf/sample.pdf\" no_link %}\n```\n\nUse `width` and/or `height` parameters to size the container. Default values are _width=100%_ and _height=500px_.\u003cbr/\u003e\nOrder does not matter, and can be used in combination with _no_link_ parameter.\n```\n {% pdf \"/files/pdf/sample.pdf\" width=350px height=500px %}\n```\n\n### Presentation\n\nYou can also embed PowerPoint presentations!\n```\n {% pdf \"http://img.labnol.org/di/PowerPoint.ppt\" %}\n```\n\nYour file **must** end with `.pdf`, `.ppt` or `.pptx`. Everyting else is forbidden.\n\n## Result\n\nThe embedded pdf output\n\n[DEMO](https://mihajlonesic.gitlab.io/projects/jekyll-pdf-embed/#result) \u003cbr/\u003e\n[MORE EXAMPLES](https://mihajlonesic.gitlab.io/jpe-examples/)\n\n![](https://i.imgur.com/hdiVfm0.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihajlonesic%2Fjekyll-pdf-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmihajlonesic%2Fjekyll-pdf-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmihajlonesic%2Fjekyll-pdf-embed/lists"}