We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I some PDFs , some of are password protected & some not. I want following task to perform
Can you help me to do this. IMP. is to update password of password protected PDF.
I used this method to set password
coherentpdf.toFileEncrypted(pdf, coherentpdf.aes256bitisofalse, [coherentpdf.noEdit], password, password, false, false, protected_file_path);
Thanks in advance.
The text was updated successfully, but these errors were encountered:
You can:
fromFile
isEncrypted
toFileEncrypted
Sorry, something went wrong.
@johnwhitington Thanks for reply. I tried but, PDF id created with blank pages.
let pdf = await coherentpdf.fromFile(filePath, 'Admin@123'); if(coherentpdf.isEncrypted(pdf)){ let permissions = [coherentpdf.noEdit]; coherentpdf.toFileEncrypted(pdf, coherentpdf.aes256bitisofalse, permissions, "Demo@123", "Demo@123", false, false, newFilePath,); }
Can you make a standalone example for me to test? i.e
No branches or pull requests
I some PDFs , some of are password protected & some not. I want following task to perform
Can you help me to do this.
IMP. is to update password of password protected PDF.
I used this method to set password
coherentpdf.toFileEncrypted(pdf, coherentpdf.aes256bitisofalse, [coherentpdf.noEdit], password, password, false, false, protected_file_path);
Thanks in advance.
The text was updated successfully, but these errors were encountered: