Hugo Embed Pdf Shortcode

screenshot of Hugo Embed Pdf Shortcode
hugo

A shortcode for Hugo(https://gohugo.io/) which allows you to embed a PDF file in a page using Pdf.js (https://mozilla.github.io/pdf.js/)

##Overview

This product analysis is about a Hugo Shortcode called "embed-pdf" that allows users to embed a PDF file in a page on their Hugo website. It is developed using the PDF.js library by Mozilla. The analysis includes information about the setup, usage, FAQ, and support for this shortcode.

##Features

  • Embed PDF files in pages on a Hugo website
  • Option to hide pagination
  • Option to render a specific page number
  • Option to hide the loading spinner while the document loads
  • Supports local file embed (not absolute URLs from remote servers)
  • Two installation methods: Git submodule or cloning the repository
  • Compatibility with Hugo based websites only

##Installation

###Method 1 - Install as a Git submodule

  1. Add the "embed-pdf" shortcode as a Git submodule.
  2. Modify the config.toml file in your Hugo website directory to include the shortcode.
hugo
Hugo

Hugo is an open-source static site generator that features fast build times, flexible themes, support for multiple content formats, multilingual websites, live reloading, and an active community. It allows developers to easily create and deploy SEO-friendly and mobile-responsive websites.