Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

PDF

Security covered Under active development 8,454 sites

Part of the PDF ecosystem · 19 projects

This module allows PDF files to be displayed directly in the browser using the pdf.js library, either as a primary display method or as a fallback for users without a PDF plugin. It can be used to build online libraries.

Use HTML5 to display PDF files if users don't have pdf plugin for their browsers.
Thanks to pdf.js project by Mozilla.

With this module you can use pdf.js to display PDF file all the time or only use pdf.js when visitors don't have pdf reader plugin.

Use this module with apachesolr_file (recommend with file_entity 7.x-2.x), you can build your owned online library.

How to install pdf.js

Download pre-built pdf.js from here and extract is into your Drupal libraries directory (Drupal 8 uses /libraries instead of /sites/all/libraries). The folder in your libraries folder must be named to pdf.js. Make sure your directory structure like this:

Drupal 10–11

Ask your assistant about PDF

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • file Drupal core

Required by

3 tracked projects depend on this one

Activity

Tracked releases
2
Tracked since
Jul 2023
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
8.x-1.3 Stable 10–11 Dec 15, 2025
8.x-1.2 Stable 9–10 Jul 14, 2023