jonaswinkler / paperless-ng

A supercharged version of paperless: scan, index and archive all your physical documents
https://paperless-ng.readthedocs.io/en/latest/
GNU General Public License v3.0
5.37k stars 355 forks source link

PDF view does not work without internet #232

Closed kinglike1337 closed 3 years ago

kinglike1337 commented 3 years ago

I am testing paperless-ng in a restricted environment without direct internet access. The PDF view of a document does not work in this scenario, because an external java-script library is required: https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.5.207/pdf.worker.min.js

It would be nice for a self-hosted application to not rely on any external resources.

Tested with version 0.9.11.

jonaswinkler commented 3 years ago

Agreed!


Notes to myself:

https://github.com/VadimDez/ng2-pdf-viewer/blob/master/README.md#set-custom-path-to-the-worker

or even better, just tell angular to include the worker, which is already in paperless as a dependency anyway.