BoxLang 🚀 A New JVM Dynamic Language Learn More...

PresideCMS Extension: PDF Viewer

v1.1.0 Preside Extensions

PDF Viewer for Preside

This extension allows you to embed PDF files in web pages using the Adobe PDF Embed API.

The PDF Embed API allows cross-platform display of PDFs in web pages with no installation required.


In order to use the Adobe PDF Embed API, you need to obtain (free) credentials for the Adobe Document Services API:

Enter the provided Client ID in the PDF Viewer system settings panel, and you're ready to go!

The widget

Use the widget to choose a PDF file from the Asset Manager, and one of three available embed modes. Each mode has a few extra options available to control the PDF display interface.

Lightbox mode displays a rendered thumbnail of the PDF on the webpage; when clicked, this will load the PDF in a lightbox overlay, filling the whole viewport.

The advantage of this method is that the PDF content is only loaded when the user chooses to view it (the Adobe Viewer produces a lot more data to transfer than just the size of the original PDF).

Sized container

The sized container renders the PDF in a container which fills all the available width, and whose height is governed by the aspect ratio of the PDF content; the container fits a single page of the PDF at a time.


In-line rendering displays the PDF in a container which fills all the available width. However, it is displayed as one long, unpaged piece of content.



  • Update to use newer viewer script for better UX


  • Fix aspect ratio padding fallback on sized container


  • Fix sized container rendering if calculated dimensions are invalid


  • Move lightbox link text to i18n


  • Initial public release

$ box install preside-ext-pdf-viewer

No collaborators yet.
  • {{ getFullDate("2021-05-02T14:33:19Z") }}
  • {{ getFullDate("2022-09-26T10:16:43Z") }}
  • 1,581
  • 19,537