A Scrivito widget that displays a PDF file on a page using PDF.js.
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
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
``