Replies: 2 comments 6 replies
-
Check your logs, My guess is that you copy-pasted the call to |
Beta Was this translation helpful? Give feedback.
-
The code below throws an exception: ` timestamper = timestamps.HTTPTimeStamper( signature_meta = signers.PdfSignatureMetadata( with open('input.pdf', 'rb') as inf: |
Beta Was this translation helpful? Give feedback.
-
Hello.
I want to sign pdf files, bu the code in below returns " Message='NoneType' object has no attribute 'get_signature_mechanism'"
What is the problem and how can I fix it?
`cms_signer = signers.SimpleSigner.load(
'path/to/signer/key.pem', 'path/to/signer/cert.pem',
ca_chain_files=('path/to/relevant/certs.pem',),
key_passphrase=b'secret'
)
with open('input.pdf', 'rb') as doc:
w = IncrementalPdfFileWriter(doc)
out = signers.sign_pdf(
w, signers.PdfSignatureMetadata(field_name='Signature1'),
signer=cms_signer,
)`
Beta Was this translation helpful? Give feedback.
All reactions