JarethRader / CryptoLib

Updated repository for CryptoLib
0 stars 0 forks source link

Change PDF Viewer #14

Closed JarethRader closed 4 years ago

JarethRader commented 4 years ago

The current PDF viewer, PDFTron, adds a watermark across every page of the book. It's $4000 a year for a license, so it would be better if we found another way to display them. It's important to remember that we need to disable the ability to download and print PDFs.

Also, if we can figure out how to open encrypted PDF files from the browser that would also be beneficial, as we can add another layer of security to the process.

JarethRader commented 4 years ago

21 Changed the PDF viewer from using PDFTron to PDF.js. PDF.js is hosted locally, so I was able to remove the code for the print and download buttons from the code. I will look into using google's document viewer instead of PDF.js. It looks better and natively supports removing the toolbar.

I have not looked into encrypting the pdf files yet. I will probably open a new issue for that specifically.

JarethRader commented 4 years ago

I will create a separate issue for handling encrypted files. I will close this issue as the problem it was addressing is solved for now.