README.md in pdfjs_viewer-rails-0.0.9 vs README.md in pdfjs_viewer-rails-0.1.0
- old
+ new
@@ -1,7 +1,9 @@
# pdfjs_viewer-rails
+[![Build Status](https://travis-ci.org/senny/pdfjs_viewer-rails.svg?branch=master)](https://travis-ci.org/senny/pdfjs_viewer-rails)
+
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -20,11 +22,11 @@
<img
src="https://raw.githubusercontent.com/senny/pdfjs_viewer-rails/master/doc/files/viewer_full.png"
alt="full style"/>
</p>
-**minimal**
+**reduced**
<p align="center">
<img
src="https://raw.githubusercontent.com/senny/pdfjs_viewer-rails/master/doc/files/viewer_reduced.png"
alt="reduced style"/>
@@ -67,9 +69,23 @@
<%= pdfjs_viewer pdf_url: "/sample.pdf", style: :full %>
<%= pdfjs_viewer pdf_url: "/sample.pdf", style: :minimal %>
```
NOTE: The helper will render a full HTML document and should not be used in a layout.
+
+### Verbosity of PDF.js
+
+The verbosity of PDF.js can be set with:
+
+```
+$ export PDFJS_VIEWER_VERBOSITY=warnings
+```
+
+Verbosity levels:
+
+* errors (default)
+* warnings
+* infos
## Development
Tests can be executed with: