No description
Find a file
Joas Schilling f94b10c152
Merge pull request #1275 from nextcloud/remove-unneeded-pdfjs-web-files-from-release
fix: Remove unneeded PDF.js web files from release
2025-10-01 17:57:05 +02:00
.github feat(deps): Add Nextcloud 33 support on master 2025-09-04 15:44:19 +00:00
.tx Delete .tx/backport 2023-11-03 11:21:57 +01:00
appinfo feat(deps): Add Nextcloud 33 support on master 2025-09-04 15:44:19 +00:00
build-js fix: move build to build-js 2024-07-10 00:52:21 +02:00
css chore: Add SPDX header 2024-07-01 09:37:11 +02:00
img fix: Update PDF icon(s) to latest server-version used one 2024-06-28 16:41:27 +02:00
js chore(deps-dev): Bump axios from 1.12.1 to 1.12.2 2025-09-23 11:22:25 +00:00
l10n fix(l10n): Update translations from Transifex 2025-09-11 00:44:33 +00:00
lib fix: Remove custom handling for public share pages with single files 2025-05-06 09:43:17 +02:00
LICENSES fix(deps): Fix npm audit 2025-05-05 20:38:58 +02:00
src fix: Fix eslint prefer-rest-params 2025-09-03 20:20:29 +02:00
templates Update "viewer.php" to PDF.js 4.0.189 2025-02-05 18:09:29 +01:00
tests chore(tests): Do not clear hooks 2025-05-20 10:02:43 +02:00
vendor-bin/psalm chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02: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 nextcloud/coding-standard from 1.3.2 to 1.4.0 2025-06-21 01:47:05 +00:00
COPYING Fix #569 2022-02-28 10:30:40 +01:00
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-dev): Bump axios from 1.12.1 to 1.12.2 2025-09-23 11:22:25 +00:00
package.json chore(deps-dev): Bump axios from 1.12.1 to 1.12.2 2025-09-23 11:22:25 +00:00
pdfjs-get.js fix: Get PDF.js version from "package-lock.json" 2025-02-24 10:16:14 +01:00
psalm.xml chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02: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. 😌