Pdf encrypt

Hi.
Is it possible to encrypt pdf files with a unique password in knime?

Hi there @daviddelos,

welcome to KNIME Community!

Not aware of KNIME node that has this ability but Python (which is integrated with KNIME; see integration guide here) has some options for this so check it out:

Br,
Ivan

1 Like

Hi @ipazin,
I could do it in the Python extension with the library for the link you shared, thank you very much!.
Do you know what level of encryption this library uses?
I think it sets 128 bits by default, but I’m not sure.

3 Likes

Hi @daviddelos,

if you are using PyPDF2 then it is 128 by default.
https://pythonhosted.org/PyPDF2/PdfFileWriter.html#PyPDF2.PdfFileWriter.encrypt

Br,
Ivan