No description
Find a file
dependabot[bot] 9dd356a3d6
Bump copy-webpack-plugin from 6.4.1 to 10.0.0
Bumps [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) from 6.4.1 to 10.0.0.
- [Release notes](https://github.com/webpack-contrib/copy-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.4.1...v10.0.0)

---
updated-dependencies:
- dependency-name: copy-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 10:23:56 +00:00
.github Run stylelint through npm. 2021-11-11 14:13:49 +01:00
.tx Add Transifex config. 2020-11-25 16:09:19 +01:00
3rdparty Initial Open Source checkin of version 0.1.0. 2020-11-25 15:38:38 +01:00
appinfo pdfdraw works with Nextcloud 23. 2021-11-22 16:05:27 +01:00
css Update pdf.js and viewer to 2.9.359 2021-11-22 14:55:37 +01:00
img Initial Open Source checkin of version 0.1.0. 2020-11-25 15:38:38 +01:00
lib Switch database setup to use migrations. 2021-11-22 16:05:08 +01:00
screenshots Add screenshots (#2). 2020-11-30 17:42:11 +01:00
server Bump socket.io from 4.3.2 to 4.4.0 in /server 2021-11-19 10:27:00 +00:00
src Loading pdf.js manually is not necessary, bundled with viewer. 2021-11-22 15:05:09 +01:00
templates Loading pdf.js manually is not necessary, bundled with viewer. 2021-11-22 15:05:09 +01:00
.eslintignore Manage dependencies through npm. 2021-11-10 16:57:34 +01:00
.eslintrc.yml Run eslint through npm. 2021-11-11 14:10:52 +01:00
.gitignore npm: Keep package-lock.json in the repository. 2021-11-11 11:37:01 +01:00
.gitmodules Initial Open Source checkin of version 0.1.0. 2020-11-25 15:38:38 +01:00
.stylelintrc Run stylelint through npm. 2021-11-11 14:13:49 +01:00
LICENSE Initial Open Source checkin of version 0.1.0. 2020-11-25 15:38:38 +01:00
Makefile Manage dependencies through npm. 2021-11-10 16:57:34 +01:00
package-lock.json Bump copy-webpack-plugin from 6.4.1 to 10.0.0 2021-11-23 10:23:56 +00:00
package.json Bump copy-webpack-plugin from 6.4.1 to 10.0.0 2021-11-23 10:23:56 +00:00
README.md Initial Open Source checkin of version 0.1.0. 2020-11-25 15:38:38 +01:00
webpack.js Ensure pdf.js and the viewer are using the same versions. 2021-11-22 15:15:08 +01:00

PDF Annotations for Nextcloud

Installation

  • Clone the repository to the apps folder of Nextcloud. Make sure to clone recursively with submodules or run git submodule update --init afterwards to fetch third-party components.
  • Execute make in the checkout folder to fetch other third-party dependencies.

Server

The backend server is located in the server subfolder, see the README.md there for further information.

Nginx configuration

Add the following to the nginx server configuration so the pdfdraw server runs behind nginx, utilizing the same SSL settings:

upstream pdfdraw {
    server 127.0.0.1:8080;
}

server {

    ... other configuration for Nextcloud ...

    location /socket.io {
        proxy_pass http://pdfdraw/socket.io;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    location /download/ {
        proxy_pass http://pdfdraw/download/;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

}

Nextcloud configuration

The server address and shared secret can be configured in the Nextcloud admin settings in section PDF Annotations.

Events

Other apps can override the name that is shown in the list of users currently annotating a document.

For that the app dispatches an event OCA\PdfDraw::getDisplayName. The event has an argument displayName which contains the default display name. Logged in Nextcloud users will use their display name. All other (anonymous) users will use an empty name by default (this is shown as Anonymous in the list).

Event handlers can listen for the OCA\PdfDraw::getDisplayName event and update the displayName argument if they can identify the user by other means.