How can WordPress protect files from downloads and prints and make it just for viewing?
2 answers
I use the infoprotector service on my client projects, which protects from copying and pdf and doc and video. Comrades PR plugin under WordPress called CopySafe PDF Protection . Try it, maybe you will get it.
The most you can do is make it harder to get a document with some kind of DRM . But DRM works only when the viewer is compatible with it, which means it will not save it from an arbitrary user. Only if you plan to display a document from machines that you trust and which do not have the means to download or print it.
Here is one of the stormy discussions about adding DRM-like features to pdf.js As you can see, they have not been added yet .
So for a wide audience - no way .