Skip to content

infopark/scrivito_pdf_widget

Repository files navigation

ScrivitoPdfWidget

A Scrivito widget that displays a PDF file on a page using PDF.js.

Installation

Add this line to your application's Gemfile:

gem 'scrivito_pdf_widget'

Add this line to your application stylesheet manifest:

*= require scrivito_pdf_widget

If you use sass-rails for your application stylesheet manifest (e.g. application.scss or application.css.scss) add the following:

@import "scrivito_pdf_widget/application";
@import "scrivito_pdf_widget/editing";

Add this line to your application JavaScript manifest:

//= require scrivito_pdf_widget

Localization

The following code represents the default localization for English. Copy it to your en.yml and change it if necessary:

en:
  scrivito_pdf_widget:
    thumbnail:
      title: Pdf
      description: Display a PDF on your page
    details:
      pdf: PDF
      description: Description
      replace_pdf: Drop new PDF here to replace
``

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages