About the PdfViewer category

Wrapper for PDF.js - Home

-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 PDF.js - Home
-dragandscroll GitHub - asvd/intence: brand new way of scrolling indicator

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)