Compare commits
3 Commits
c7a6283e00
...
083bf20be7
Author | SHA1 | Date | |
---|---|---|---|
083bf20be7 | |||
6626b33c6a | |||
8a3c44c517 |
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -3,5 +3,5 @@
|
|||||||
<component name="Black">
|
<component name="Black">
|
||||||
<option name="sdkName" value="Python 3.10 (pythonProject)" />
|
<option name="sdkName" value="Python 3.10 (pythonProject)" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (pythonProject)" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 virtualenv at ~/dev/chill/sign-pdf-worker/pythonProject/.venv" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
2
.idea/sign-pdf-worker.iml
generated
2
.idea/sign-pdf-worker.iml
generated
@ -4,7 +4,7 @@
|
|||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<excludeFolder url="file://$MODULE_DIR$/pythonProject/.venv" />
|
<excludeFolder url="file://$MODULE_DIR$/pythonProject/.venv" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="jdk" jdkName="Python 3.10 virtualenv at ~/dev/chill/sign-pdf-worker/pythonProject/.venv" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
@ -1,20 +1,22 @@
|
|||||||
asn1crypto==1.5.1
|
asn1crypto==1.5.1
|
||||||
certifi==2024.6.2
|
certifi==2025.4.26
|
||||||
cffi==1.16.0
|
cffi==1.17.1
|
||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.4.2
|
||||||
click==8.1.7
|
click==8.2.1
|
||||||
cryptography==42.0.8
|
cryptography==45.0.3
|
||||||
idna==3.7
|
idna==3.10
|
||||||
|
lxml==5.4.0
|
||||||
oscrypto==1.3.0
|
oscrypto==1.3.0
|
||||||
pika==1.3.2
|
pika==1.3.2
|
||||||
|
pika-stubs==0.1.3
|
||||||
pycparser==2.22
|
pycparser==2.22
|
||||||
pyHanko==0.25.0
|
pyHanko==0.29.0
|
||||||
pyhanko-certvalidator==0.26.3
|
pyhanko-certvalidator==0.27.0
|
||||||
pypng==0.20220715.0
|
pypng==0.20220715.0
|
||||||
PyYAML==6.0.1
|
PyYAML==6.0.2
|
||||||
qrcode==7.4.2
|
qrcode==8.2
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
typing_extensions==4.12.2
|
typing_extensions==4.14.0
|
||||||
tzlocal==5.2
|
tzlocal==5.3.1
|
||||||
uritools==4.0.3
|
uritools==5.0.0
|
||||||
urllib3==2.2.2
|
urllib3==2.4.0
|
||||||
|
@ -13,9 +13,13 @@ orchestrator = SignOrchestrator('./assets/dummy.p12',
|
|||||||
pkcs12_password=None)
|
pkcs12_password=None)
|
||||||
|
|
||||||
with open('./assets/test.pdf', 'rb') as input:
|
with open('./assets/test.pdf', 'rb') as input:
|
||||||
signed_content = orchestrator.sign(reason="first signer", signature_index=None,
|
signed_content = orchestrator.sign(reason="first\nsigner\nreturn\ntext", signature_index=None,
|
||||||
input_content=input.read(), box_place=(300, 600, 500, 660), on_page=0,
|
input_content=input.read(), box_place=(300, 600, 500, 660), on_page=0,
|
||||||
signer_text="Mme Caroline Diallo")
|
signer_text="""Mme Caroline Diallo
|
||||||
|
with
|
||||||
|
return
|
||||||
|
text
|
||||||
|
""")
|
||||||
|
|
||||||
with open('./assets/test_signed_0.pdf', 'wb') as output:
|
with open('./assets/test_signed_0.pdf', 'wb') as output:
|
||||||
output.write(signed_content.read())
|
output.write(signed_content.read())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user