Comments (3)
Thanks you !
The signature field is detected as a data fields by pdftk :
$ pdftk document_prepared_with_signatureField.pdf dump_data_fields output /dev/stdout
---
FieldType: Signature
FieldName: Sig1
FieldFlags: 0
FieldJustification: Left
With data fields pdf, the action menu could be transform in field menu : the user could enter the different fields of the pdf.
from signaturepdf.
Good idea ! If you can share a PDF with this kind of feature, it whould help :)
from signaturepdf.
Hi,
You'll find 3 versions of the PDF.
- without signature field (original): document.pdf
- with signature field (Sig1): document_prepared_with_signatureField.pdf
- with the user signature: document_signed.pdf
The script in Quick'n'Dirty mode :
- copy the document.pdf to document_prepared_with_signatureField.pdf
- launch the python script (needs pip install pyhanko)
from pyhanko.sign.fields import SigFieldSpec, append_signature_field
from pyhanko.pdf_utils.incremental_writer import IncrementalPdfFileWriter
with open('document_prepared_with_signatureField.pdf', 'rb+') as doc:
w = IncrementalPdfFileWriter(doc)
signature_field = SigFieldSpec(sig_field_name="Sig1", on_page=0, box=(50,50,300,80))
append_signature_field(w, signature_field)
w.write_in_place()
Your file is updated with a empty Signature Field named Sig1
In Acrobat, if you click on it, you can sign with a qualified device, or with a "Visual Signature" qualified by Adobe (no legal value but it's works here). With an API, you can sign the signature field (with a linked device, or a keystore .. that contains the private key and certificate needed to sign ;-))
For this kind of stuff, you need to use a private key somewhere to "sign" you signature Field, so ... you need to realize this signature with a backend service or a YubiKey/Browser capability.
I'm not sure is the principale aim of your cool tool, but if you are interesting in go deeper with electronic signature ....
:D
from signaturepdf.
Related Issues (20)
- Multiple image uploads
- Items reordering
- Items duplication
- Paraphe sur toutes les pages
- ajout de filigrane HOT 3
- Add compress / reduce pdf feature HOT 1
- Ability to crop PDF pages
- Erreur d'accès au cache. Cette application ne fonctionne pas en mode de navigation privée HOT 4
- Accept uploading other types than PDF and convert to PDF
- Encrypt PDFs transmitted and stored on servers
- Client side organization of the PDF HOT 1
- Signature signed and verified with a key
- Extraction and downloading of pdf not working
- Importing multiple files prevents downloading
- pdf file conservation duration
- Sequanux instance HOT 1
- Can I Delete Elements Placed in Error? HOT 1
- Impossible de revenir sur l'écran d'accueil pour changer de module en version mobile
- L'extraction de pages crée des fichiers anormalement gros
- New instance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signaturepdf.