📖 A PDF viewer for Nextcloud
Перейти к файлу
Nextcloud bot 617ea5e01d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-04 00:52:18 +00:00
.github
.tx
LICENSES
appinfo
build-js
css
img
js
l10n Fix(l10n): Update translations from Transifex 2024-11-04 00:52:18 +00:00
lib
src
templates
tests
vendor-bin/psalm
.eslintrc.js
.gitignore
.l10nignore
.php-cs-fixer.dist.php
.scrutinizer.yml
AUTHORS.md
COPYING
Makefile
README.md
REUSE.toml
babel.config.js
composer.json
composer.lock
package-lock.json
package.json
pdfjs-get.js
psalm.xml
stylelint.config.js
webpack.config.js

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