No description
Find a file
dependabot[bot] a1620ce602
build(deps-dev): bump webpack-cli from 5.1.1 to 5.1.4
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 5.1.1 to 5.1.4.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@5.1.1...webpack-cli@5.1.4)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-04 10:24:16 +00:00
.github Vendor JWT dependency. 2023-03-14 15:05:52 +01:00
.tx Add Transifex config. 2020-11-25 16:09:19 +01:00
appinfo No need to load composer autoloader. 2023-03-14 15:49:28 +01:00
css Prevent selecting static text on text annotations. 2022-03-01 16:01:34 +01:00
img Add support for text annotations. 2022-03-01 16:01:33 +01:00
l10n Update translations from 0400a4d7a1 2022-03-14 09:52:28 +01:00
lib Vendor JWT dependency. 2023-03-14 15:05:52 +01:00
screenshots Add screenshots (#2). 2020-11-30 17:42:11 +01:00
server build(deps): bump semver from 7.3.8 to 7.5.3 in /server 2023-07-01 01:46:31 +00:00
src Set locale of viewer to locale of Nextcloud. 2022-06-17 15:18:12 +02:00
templates Update wording for text annotations. 2022-03-14 09:48:52 +01:00
translationfiles Apply translations in de 2022-03-14 08:50:06 +00:00
vendor-bin/mozart Vendor JWT dependency. 2023-03-14 15:05:52 +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 Vendor JWT dependency. 2023-03-14 15:05:52 +01:00
.l10nignore Add translation support and German texts. 2021-12-07 16:44:26 +01:00
.stylelintrc Run stylelint through npm. 2021-11-11 14:13:49 +01:00
CHANGELOG.md Add changelog. 2021-12-09 09:40:50 +01:00
composer.json Vendor JWT dependency. 2023-03-14 15:05:52 +01:00
composer.lock build(deps): bump firebase/php-jwt from 6.5.0 to 6.8.0 2023-06-24 01:57:09 +00:00
LICENSE Initial Open Source checkin of version 0.1.0. 2020-11-25 15:38:38 +01:00
Makefile Vendor JWT dependency. 2023-03-14 15:05:52 +01:00
package-lock.json build(deps-dev): bump webpack-cli from 5.1.1 to 5.1.4 2023-07-04 10:24:16 +00:00
package.json build(deps-dev): bump webpack-cli from 5.1.1 to 5.1.4 2023-07-04 10:24:16 +00:00
README.md Add note on using Transifex for translations. 2021-12-08 09:27:03 +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.

Translations

Translations to other languages are done in Transifex at https://www.transifex.com/strukturag/pdfdraw/