Hopding / pdf-lib

Create and modify PDF documents in any JavaScript environment
https://pdf-lib.js.org
MIT License
6.74k stars 645 forks source link

How to decrypt a pdf doc by using pdf-lib #1530

Open OuYangHuaQing opened 10 months ago

OuYangHuaQing commented 10 months ago

Describe your idea

I want to decrypt and encrypt a pdf in web,how to do?

How could this be implemented?

I don't konw

What problem are you trying to solve?

I want to decrypt and encrypt a pdf in web,how to do?

Why does this matter to you?

I want to decrypt and encrypt a pdf in web,how to do?

Would others find this helpful?

no

Are you interested in implementing your proposal?

Yes

Why are you submitting a proposal?

I want to decrypt and encrypt a pdf in web,how to do?

Additional Notes

No response

Sharcoux commented 10 months ago

decryption can be done in @cantoo/pdf-lib fork of the project. encryption cannot be done with this lib for now but might be made available in the future, as there is an opened PR about it.

OuYangHuaQing commented 9 months ago

Thank you very much