A PDF viewer for Nextcloud
AGPL-3.0 License
This application integrates the PDF.js library into Nextcloud's Viewer. You can view PDF files as well as Adobe Illustrator files (.ai)
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
apps
folder of your Nextcloud: git clone https://github.com/nextcloud/files_pdfviewer.git
apps
folder of your Nextcloud: git clone https://github.com/nextcloud/viewer.git
npm ci && npm run dev
to install dependencies and build the Javascript.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
.
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.
This guide will help you get started:
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.