klimeryk / recalendar.js

ReCalendar - create your personalized calendar PDF for ReMarkable tablets
https://recalendar.me/
GNU Affero General Public License v3.0
261 stars 63 forks source link

Feature request: Password-protect the generated PDF #90

Open ilbonte opened 1 year ago

ilbonte commented 1 year ago

I know that it is possible to password-protect a pdf and remarkable will ask for the password when opening the file. I know that adding the password in a second moment from other tools is possible, so this might be a low-priority feature. I might try to add this feature in the feature but I'm not familiar with react so I don't promise anything :)

klimeryk commented 10 months ago

Huh, I did not know that ReMarkable supported password-protected files. I can totally see how that could be a very useful feature for such a personal document as ReCalendar. Thanks for the suggestion - I'll look into this, I'm hoping it's a quick feature to add. Of course, open to PRs as well :)

klimeryk commented 10 months ago

Looks like I was a bit too optimistic. Password protection ("PDF encryption") is not supported in the library I'm using to generate the PDF: https://github.com/diegomura/react-pdf/issues/672. But it is supported by the library they are using 😅 So I'll look into adding that support to react-pdf, hopefully it's not too complicated (let's see if this time I'm right ;)).

ilbonte commented 10 months ago

Damn, so strange that weird that they do not support it! :/ Thanks for taking the time to look into it!