Show Menu
TOPICS×

PDF Viewer Component

The Core Component PDF Viewer component allows for the inclusion of a PDF document on a page.

Usage

The Core Component PDF Viewer component embeds a viewer to display PDF files stored as assets on the page.

Version and Compatibility

The current version of the PDF Viewer Component is v1, which was introduced with release 2.10.0 of the Core Components in June 2020, and is described in this document.
The following table details all supported versions of the component, the AEM versions with which the versions of the component is compatible, and links to documentation for previous versions.
Component Version
AEM 6.4
AEM 6.5
AEM as a Cloud Service
v1
Compatible
Compatible
Compatible
For more information about Core Component versions and releases, see the document Core Components Versions .

Sample Component Output

To experience the PDF Viewer Component as well as see examples of its configuration options as well as HTML and JSON output, visit the Component Library .

Technical Details

The latest technical documentation about the PDF Viewer Component can be found on GitHub .
Further details about developing Core Components can be found in the Core Components developer documentation .

Configure Dialog

The configure dialog allows the content author to define the viewer and how it will behave and appear for a visitor to the page.

Configuration Tab

The Configuration Tab allows the author to define which PDF should be displayed. The path can be defined as an asset in AEM or an absolute path to another resource.

Customize Tab

The Customize Tab allows the author to define the options available in the viewer to the reader and how the viewer should be presented.
The number of options available depends on the
Type
that is selected.
  • Full Window - The viewing area renders in the full browser. This is best suited for storage and productivity applications.
  • Sized Container - The viewing area renders in the full browser. This is best suited for storage and productivity applications.
  • In-Line - All PDF pages rendered in line within a web page. This is best suited for reading applications.

Full Window

The viewing area renders in the full browser. This is best suited for storage and productivity applications.
  • Default View Mode
    - How the viewer will be fit to the page where it is displayed
    • Fit Page
    • Fit Width
  • Full Screen
    - When enabled, the viewer will take up the full height/width of the viewport.
  • Annotation Tools
    - When enabled, the annotation tools are available.
  • Left Hand Panel
    - When enabled, the left hand panel is shown.
  • Download PDF
    - When enabled, the download button is shown.
  • Print PDF
    - When enabled, the print button is shown.
  • Page Controls
    - Toggles the behavior of the page controls.
    • Dock
    • Undock

Sized Container

The viewing area renders in the full browser. This is best suited for storage and productivity applications.
  • Full Screen
    - When enabled, the viewer will take up the full height/width of the viewport.
  • Download PDF
    - When enabled, the download button is shown.
  • Print PDF
    - When enabled, the print button is shown.
  • Page Controls
    - Toggles the behavior of the page controls.
    • Dock
    • Undock

In-Line

All PDF pages rendered in line within a web page. This is best suited for reading applications.
  • Download PDF
    - When enabled, the download button is shown.
  • Print PDF
    - When enabled, the print button is shown.

Design Dialog

There is no Design Dialog for the PDF Viewer Component.