arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
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
bindingAn EL expression referring to a server side UIComponent instance in a backing bean.Default is generated.
cacheWhether to cache the document when using dynamic content.Default is false.
disableFontFaceWhether to disable font face in PDF.js.Default is true.
downloadDownload filename for dynamic content.
heightHeight of the viewer iframe.
idUnique identifier of the component in a namingContainer.Default is generated.
libraryResource library when using static resource.
localeLocale for the viewer. Can be a string or java.util.Locale instance.
nameResource name when using static resource (name/library).
nameddestNamed destination to navigate to in the PDF.
pageInitial page number to display.
pagemodePage mode: 'thumbs' or 'bookmarks'.
renderedBoolean value to specify the rendering of the component, when set to false component will not be rendered.Default is true.
styleInline style for the iframe.
titleTitle for the iframe (accessibility).
urlURL of the document to view.
valueValue of the component.
widthWidth of the viewer iframe (e.g. '100%' or '800px').Default is 100%.
zoomZoom level (e.g. 'page-width', 'page-fit', 'auto', or numeric).
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 16.0.0-SNAPSHOT,PrimeFaces Extensions: 16.0.0-SNAPSHOT,JSF: Apache MyFaces Core 4.0 - Impl 4.0.3,Server: Apache Tomcat (TomEE)/10.1.52 (10.1.4),Build time: 2026-03-07 01:34