PdfViewer

Wrapper for http://mozilla.github.io/pdf.js/

-Addon works on client side.
-Display file only with .pdf (pdf) format
-Supports multipage
-drag mode
-Provide only display mode (pdf as img)

-based on script http://mozilla.github.io/pdf.js/ -dragandscroll http://github.com/asvd/intence

Simple usage

 PdfViewer c = new PdfViewer(file);
 layout.addComponent(c);

Additional method

setPage(int i)
setPreviousPageCaption(String htmlCaption)
setNextPageCaption(String htmlCaption)
setPageCaption(String htmlCaption)
setToPageCaption(String htmlCaption)
setIncreaseButtonCaption(String htmlCaption)
setDecreaseButtonCaption(String htmlCaption)
setNextAngleButtonCaption(String htmlCaption)
setBackAngleButtonCaption(String htmlCaption)
setPrintButtonCaption(String htmlCaption)
setDownloadButtonCaption(String htmlCaption) 
setAngleButtonVisible(boolean visible)
setDownloadBtnVisible(boolean visible)

Install

Link to this version
StableReleased 08 September 2017Apache License 2.0
Framework Support
Vaadin 8.0+
Also supported:
Vaadin 7 (1.1.1)
Install with
Release notes - Version 1.3.6

add page change listener, angle change listener, download listener fix bug #8