Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HowTo] use a password to edit filled PDF #77

Open
tuxtux59 opened this issue Jul 7, 2020 · 0 comments
Open

[HowTo] use a password to edit filled PDF #77

tuxtux59 opened this issue Jul 7, 2020 · 0 comments

Comments

@tuxtux59
Copy link

tuxtux59 commented Jul 7, 2020

Hi,

I guess I missed something but I can't achieve to lock edition of PDF with a custom password but allow unknown users to read the file BUT forbid them to edit the file without the password.

pdftk.fill_form tempform,
                    tempfile,
                    data.as_json,
                    encrypt: true,
                    encrypt_options: 'user_pw secret allow printing'

Second question is secret the password set in the command above ?

Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant