No description
Find a file
github-actions[bot] f1056fa4a7
Merge pull request #1392 from nextcloud/dependabot/npm_and_yarn/fast-xml-parser-5.5.7
chore(deps): Bump fast-xml-parser from 5.5.6 to 5.5.7
2026-03-19 20:19:19 +00:00
.github feat(deps): Add Nextcloud 34 support on master 2026-01-22 10:28:59 +01:00
.tx Delete .tx/backport 2023-11-03 11:21:57 +01:00
appinfo feat(deps): Add Nextcloud 34 support on master 2026-01-22 10:28:59 +01:00
build-js fix: Ignore SDPX license false positive 2026-01-04 07:21:34 +01:00
css fix: Show save button in secondary toolbar for editable files 2026-01-06 05:59:39 +01:00
img fix: Update PDF icon(s) to latest server-version used one 2024-06-28 16:41:27 +02:00
js chore(assets): Recompile assets 2026-03-19 08:05:59 +00:00
l10n fix(l10n): Update translations from Transifex 2026-02-24 00:49:07 +00:00
lib fix: Replace raw string with named constant 2026-03-19 20:58:13 +01:00
LICENSES fix(deps): Fix npm audit 2025-05-05 20:38:58 +02:00
src fix: Fix "allow view without download" not being handled 2026-03-19 08:41:15 +01:00
templates chore: Replace removed getContentSecurityPolicyNonceManager 2026-03-19 11:31:09 +01:00
tests fix: Replace raw string with named constant 2026-03-19 20:58:13 +01:00
vendor-bin/psalm chore: Update nextcloud/ocp to latest dev-master 2026-03-19 20:20:14 +01:00
.gitignore chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
.l10nignore chore: Add SPDX header 2024-07-01 09:37:11 +02:00
.nextcloudignore fix: Remove unneeded PDF.js web files from release 2025-10-01 16:04:03 +02:00
.php-cs-fixer.dist.php chore: Add SPDX header 2024-07-01 09:37:11 +02:00
.scrutinizer.yml chore: Add SPDX header 2024-07-01 09:37:11 +02:00
AUTHORS.md chore: Add SPDX header 2024-07-01 09:37:11 +02:00
babel.config.js chore: Add SPDX header 2024-07-01 09:37:11 +02:00
composer.json fix(composer): fix running composer with --no-dev option 2025-01-15 12:33:14 +01:00
composer.lock chore(deps-dev): Bump bamarni/composer-bin-plugin from 1.9.0 to 1.9.1 2026-02-14 02:02:55 +00:00
COPYING
eslint.config.mjs chore: Bump @nextcloud/eslint-config from 8.4.2 to 9.0.0-rc.5 2025-09-03 20:20:24 +02:00
Makefile chore: Add SPDX header 2024-07-01 09:37:11 +02:00
package-lock.json chore(deps): Bump fast-xml-parser from 5.5.6 to 5.5.7 2026-03-19 20:17:46 +00:00
package.json chore: Add explicit dependency for @nextcloud/initial-state 2026-03-19 08:05:09 +01:00
pdfjs-get.js fix: Get PDF.js version from "package-lock.json" 2025-02-24 10:16:14 +01:00
psalm.xml fix(psalm): Use php 8.2 2025-11-21 14:02:09 +01:00
README.md docs: Add REUSE compliance status badge 2024-07-04 10:56:56 +02:00
REUSE.toml chore(deps): Bump pdfjs-dist from 3.11.174 to 4.0.189 2025-02-05 18:09:17 +01:00
stylelint.config.js chore: Add SPDX header 2024-07-01 09:37:11 +02:00
webpack.config.js fix: Remove custom handling for public share pages with single files 2025-05-06 09:43:17 +02:00

PDF viewer for Nextcloud

REUSE status

This application integrates the PDF.js library into Nextcloud's Viewer. You can view PDF files as well as Adobe Illustrator files (.ai)

PDF viewer

Enable Javascript execution in PDF files

To allow Javascript embedded in PDF-files to be executed inside the PDF-viewer inside your browser, enable it with:

php occ config:app:set files_pdfviewer enable_scripting --value=yes

Disable:

php occ config:app:delete files_pdfviewer enable_scripting

🏗 Development setup

  1. ☁ Clone this app into the apps folder of your Nextcloud: git clone https://github.com/nextcloud/files_pdfviewer.git
  2. ☁ Clone the viewer app into the apps folder of your Nextcloud: git clone https://github.com/nextcloud/viewer.git
  3. 👩‍💻 In the folder of the files_pdfviewer app, run the command npm ci && npm run dev to install dependencies and build the Javascript.
  4. Enable the app through the app management of your Nextcloud (viewer should be enabled by default)
  5. 🎉 Partytime! Help fix some issues and review pull requests 👍

🧙 Advanced development stuff

To build the Javascript whenever you make changes, you can also use npm run build. Or npm run watch to automatically rebuild on every file save.

You run all tests by using make test.

📦 Update pdf.js

When a new release of pdf.js is available on https://github.com/mozilla/pdf.js/releases, update the version number on https://github.com/nextcloud/files_pdfviewer/blob/master/pdfjs-get.js#L8 and compile the app again.

♥ How to create a pull request

This guide will help you get started:

✌ Code of conduct

The Nextcloud community has core values that are shared between all members during conferences, hackweeks and on all interactions in online platforms including Github and forums. If you contribute, participate or interact with this community, please respect our shared values. 😌