jsreport multiple pdf protection level
-
Hi,
I've been looking at https://www.npmjs.com/package/jsreport-pdf-password to add some protection to the pdf we make. I do not understand how to use the protection level as I would expect multiple choices to be selected.
I want our pdfs:
ALLOW high resolution printing (protection level - 13)
ALLOW text access of screen readers (10)
DISALLOW making any changes (4)
DISALLOW copying of text, images and other content (5)
DISALLOW plaintext metadata (6 and 7)
DISALLOW highlighting text on pdfPlease guide me on how this can be achieved.
Thanks.
-
hi! hmm i think it is not possible to set multiple protection levels, but i can be wrong.. so i asked a question to the author of the pdf encryption feature, let's see if i can get some clarification about the levels so i can get back to you
-
Hi thanks for the response.
I want to add on that we also want to have these protection levels without forcing the user to type in any password similar to what was asked here: https://github.com/jsreport/jsreport-pdf-password/issues/1 .
After searching through HummusJS, I came across https://github.com/galkahana/HummusJS/issues/220 .
You can try to set the userPassword to ''.
And set password and ownerPassword to the one you want.However, in jsreport, I don't see a way to set a userPassword to empty string.
Thanks.
-
interesting, thanks for the link, we will try to check what the hummus issue and test it, however we are a little bit busy right so it can take us some time to do it, so if you have the time you can also contribute to the repository https://github.com/jsreport/jsreport-pdf-password, i think the change is not so big so you will be able to do it otherwhise we will take a look soon