After signing PDF with Python endesive library, various editors still are able to edit the file. I compared with document, signed by SIGNICAT and Acrobat shows that SIGNICAT's document protected from editing.
...
from OpenSSL.crypto import load_pkcs12
from endesive import pdf
def main():
dct = {
b'sigflags': 3,
b'contact': b'info@example.com',
b'location': b'USA',
b'signingdate': datetime.today().strftime('%Y%m%d%H%%M%S%z').encode(),
b'reason': b'Document officially signed',
}
datas = pdf.cms.sign(datau, dct,
p12.get_privatekey().to_cryptography_key(),
p12.get_certificate().to_cryptography(),
[],
'sha256'
)
...