Document Viewer
Mozilla PDF.js DocumentViewer is a JSF wrapper of Mozilla Foundation project PDF.js a general-purpose, web standards-based platform for parsing and rendering PDFs.

Features Include:
  • Localized language support
  • Inline display of PDF documents without the need for a browser plugin or Flash
  • Supported Browsers
Components and more
Documentation pe:documentViewer
Attributes (move mouse over the names to see data types)
Name Description
id Unique identifier of the component in a namingContainer.
rendered Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding An el expression referring to a server side UIComponent instance in a backing bean.
width Width of the viewer frame. Default to 100%.
height Height of the viewer frame.
style CSS style of the viewer frame.
title Title of the viewer frame per Section 508.
url URL of the document to view.
cache Controls browser caching mode of the resource. Default is false
locale Locale to be used for labels.
page Start page of the document.
pagemode Pagemode: either "thumbs" or "bookmarks".
download You should use a name in your StreamedContent but if you are using a URL value you can give the file a name. NOTE: Must end in .pdf for PDF.js to pick it up!
zoom Zoom level. Example: zoom=200 (accepted formats: '[zoom],[left],[top]', 'page-width', 'page-height', 'page-fit', 'auto')
name Name of the document.
nameddest Nameddest: go to a named destination in the document.
library Library name of the document
value Value of the component.
PrimeFaces Extensions Showcase - © 2011-2021,PrimeFaces: 11.0.0,PrimeFaces Extensions: 11.0.3,JSF: Apache MyFaces JSF-2.3 Core API 2.3.9,Server: jetty/9.4.36.v20210114,Build time: 2022-04-17 14:55