No commit activity in last 3 years
No release in over 3 years
Displays a PDF using PDF js to show it on your page.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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
``