📖 A PDF viewer for Nextcloud
Перейти к файлу
dependabot[bot] 662fdd5217
Merge pull request #1085 from nextcloud/dependabot/npm_and_yarn/cross-spawn-7.0.6
2024-11-18 22:59:46 +00:00
.github chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
.tx Delete .tx/backport 2023-11-03 11:21:57 +01:00
LICENSES chore: Add missing license file 2024-07-04 16:46:22 +02:00
appinfo feat(deps): Add Nextcloud 31 support on master 2024-08-14 12:30:26 +02: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 fix(deps): Fix npm audit 2024-10-13 03:33:13 +00:00
l10n Fix(l10n): Update translations from Transifex 2024-11-04 00:52:18 +00:00
lib chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
src fix: Use the user configured UI language for PDFjs instead of browser language 2024-08-23 14:38:11 +02:00
templates chore: Add SPDX header 2024-07-01 09:37:11 +02:00
tests chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
vendor-bin/psalm chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
.eslintrc.js fix: Use the user configured UI language for PDFjs instead of browser language 2024-08-23 14:38:11 +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
.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
COPYING Fix #569 2022-02-28 10:30:40 +01:00
Makefile chore: Add SPDX header 2024-07-01 09:37:11 +02:00
README.md docs: Add REUSE compliance status badge 2024-07-04 10:56:56 +02:00
REUSE.toml chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
babel.config.js chore: Add SPDX header 2024-07-01 09:37:11 +02:00
composer.json chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
composer.lock chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
package-lock.json chore(deps-dev): Bump cross-spawn from 7.0.3 to 7.0.6 2024-11-18 22:58:11 +00:00
package.json chore(deps-dev): Bump @nextcloud/webpack-vue-config from 6.1.0 to 6.1.1 2024-09-28 02:23:38 +00:00
pdfjs-get.js chore: Add SPDX header 2024-07-01 09:37:11 +02:00
psalm.xml chore: Add psalm for PHP static code analysis 2024-08-23 17:31:24 +02:00
stylelint.config.js chore: Add SPDX header 2024-07-01 09:37:11 +02:00
webpack.config.js fix: Use the user configured UI language for PDFjs instead of browser language 2024-08-23 14:38:11 +02:00

README.md

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. 😌