{"id":15051246,"url":"https://github.com/nextcloud/files_pdfviewer","last_synced_at":"2025-04-04T20:10:21.727Z","repository":{"id":38455157,"uuid":"63812197","full_name":"nextcloud/files_pdfviewer","owner":"nextcloud","description":":book: A PDF viewer for Nextcloud","archived":false,"fork":false,"pushed_at":"2025-03-23T03:39:50.000Z","size":124953,"stargazers_count":95,"open_issues_count":52,"forks_count":44,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T19:07:47.536Z","etag":null,"topics":["files-pdfviewer","nextcloud","pdf"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextcloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-20T20:27:21.000Z","updated_at":"2025-03-23T00:53:38.000Z","dependencies_parsed_at":"2022-07-12T17:34:25.144Z","dependency_job_id":"352be372-028a-4681-875d-b2033af0354e","html_url":"https://github.com/nextcloud/files_pdfviewer","commit_stats":null,"previous_names":[],"tags_count":773,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud%2Ffiles_pdfviewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud%2Ffiles_pdfviewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud%2Ffiles_pdfviewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextcloud%2Ffiles_pdfviewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextcloud","download_url":"https://codeload.github.com/nextcloud/files_pdfviewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242678,"owners_count":20907134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["files-pdfviewer","nextcloud","pdf"],"created_at":"2024-09-24T21:32:16.546Z","updated_at":"2025-04-04T20:10:21.708Z","avatar_url":"https://github.com/nextcloud.png","language":"JavaScript","readme":"\u003c!--\n   - SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors\n   - SPDX-FileCopyrightText: 2014-2016 ownCloud, Inc.\n   - SPDX-License-Identifier: AGPL-3.0-only\n--\u003e\n# PDF viewer for Nextcloud\n\n[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/files_pdfviewer)](https://api.reuse.software/info/github.com/nextcloud/files_pdfviewer)\n\nThis application integrates the [PDF.js](https://mozilla.github.io/pdf.js/) library into Nextcloud's Viewer.\nYou can view PDF files as well as Adobe Illustrator files (.ai)\n\n![PDF viewer](https://user-images.githubusercontent.com/59488153/189176433-2f6d97a1-b151-4099-84f4-d1446a007b8a.png)\n\n### Enable Javascript execution in PDF files\n\nTo allow Javascript embedded in PDF-files to be executed inside the PDF-viewer inside your browser, enable it with:\n\n`php occ config:app:set files_pdfviewer enable_scripting --value=yes`\n\nDisable:\n\n`php occ config:app:delete files_pdfviewer enable_scripting`\n\n## 🏗 Development setup\n\n1. ☁ Clone this app into the `apps` folder of your Nextcloud: `git clone https://github.com/nextcloud/files_pdfviewer.git`\n1. ☁ Clone the viewer app into the `apps` folder of your Nextcloud: `git clone https://github.com/nextcloud/viewer.git`\n2. 👩‍💻 In the folder of the files_pdfviewer app, run the command `npm ci \u0026\u0026 npm run dev` to install dependencies and build the Javascript.\n3. ✅ Enable the app through the app management of your Nextcloud (viewer should be enabled by default)\n4. 🎉 Partytime! Help fix [some issues](https://github.com/nextcloud/files_pdfviewer/issues) and [review pull requests](https://github.com/nextcloud/files_pdfviewer/pulls) 👍\n\n\n### 🧙 Advanced development stuff\n\nTo 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.\n\nYou run all tests by using `make test`.\n\n### 📦 Update pdf.js\n\nWhen 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.\n\n\n## ♥ How to create a pull request\n\nThis guide will help you get started:\n- 💃 [Opening a pull request](https://opensource.guide/how-to-contribute/#opening-a-pull-request)\n\n\n## ✌ Code of conduct\n\nThe Nextcloud community has core values that are shared between all members during conferences, hackweeks and on all interactions in online platforms including [Github](https://github.com/nextcloud) and [forums](https://help.nextcloud.com). If you contribute, participate or interact with this community, please respect [our shared values](https://nextcloud.com/code-of-conduct/). 😌\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud%2Ffiles_pdfviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextcloud%2Ffiles_pdfviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextcloud%2Ffiles_pdfviewer/lists"}