permanent
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

blueprints.yaml
text/plain

Download raw (1.6 KB)

name: Pdf-Js
version: 0.3.0
description: Allows you to embed PDF.js into pages via shortcode.
icon: plug
author:
  name: Severo Iuliano
  email: severoiuliano@gmail.com
homepage: https://github.com/iusvar/grav-plugin-pdf-js
demo: http://iusvar.alwaysdata.net/grav/blog/pdfjs
keywords: grav, plugin, pdf-js
bugs: https://github.com/iusvar/grav-plugin-pdf-js/issues
docs: https://github.com/iusvar/grav-plugin-pdf-js/blob/master/README.md
license: MIT

dependencies:
  - shortcode-core

form:
  validation: strict
  fields:
    enabled:
      type: toggle
      label: PLUGIN_ADMIN.PLUGIN_STATUS
      highlight: 1
      default: 0
      options:
        1: PLUGIN_ADMIN.ENABLED
        0: PLUGIN_ADMIN.DISABLED
      validate:
        type: bool
    width:
      type: text
      size: x-small
      label: PLUGIN_PDFJS.WINDOW_WIDTH
      append: px
      help: PLUGIN_PDFJS.WINDOW_WIDTH_HELP
      validate:
          type: number
    height:
      type: text
      size: x-small
      label: PLUGIN_PDFJS.WINDOW_HEIGHT
      append: px
      help: PLUGIN_PDFJS.WINDOW_HEIGHT_HELP
      validate:
          type: number
    technique:
      type: toggle
      label: PLUGIN_PDFJS.TECHNIQUE
      default: 'pdfjs'
      highlight: 'pdfobject'
      options:
        'embed': PLUGIN_PDFJS.EMBED
        'object': PLUGIN_PDFJS.OBJECT
        'pdfjs': PLUGIN_PDFJS.PDFJS
        'pdfobject': PLUGIN_PDFJS.PDFOBJECT
    show_used_technique:
      type: toggle
      label: PLUGIN_PDFJS.SHOW_USED_TECHNIQUE
      highlight: 0
      default: 0
      options:
        1: PLUGIN_ADMIN.ENABLED
        0: PLUGIN_ADMIN.DISABLED
      validate:
        type: bool