Comments (3)
Yes, the changes are big. The PyPDF2 library is used to create pdf files, and it requires strings, not bytestrings - now you can use ttfs to create a signature with national characters.
There is one more parameter "aligned" and if it is equal to 0, the signature has a minimum size, set this parameter to e.g. 16384, you will get a similar file size as in the previous version but you have to take care of the size of this buffer yourself.
Try to sign with examples/pdf-sign-cms.py, if you still have errors send both files - signed and unsigned. I don't know anything without them.
from endesive.
hi @m32 ; I can confirm that setting the aligned
e.g. to the suggested 16384
(as also suggested in cms.py
), the size of the signature is again bigger.
However, the signature will still not be recognised by e.g. LibeOffice Impress; looking into the sources of the output PDF, it looks right.
I tried adding all of the optional parameters to the dict
, but this did not make any difference. I suppose, I will have to stay on 1.4.5 for the time being :-(
from endesive.
Add demo2_ca.crt.pem to trusted certificates in your browser. Without this, the document shows up as a blank page and libreoffice says the sign is ok, but it cannot be verified.
from endesive.
Related Issues (20)
- Reference has no DigestMethod HOT 4
- Manual fonts not rendering HOT 4
- Signature appears vertically on a rotated(landscape) PDF document HOT 3
- TypeError: 'TTFFont' object is not subscriptable in Version 2.11 HOT 2
- Application name was not added in advanced signature properties HOT 3
- $100 Bounty for LTV feature
- The new signature replaced the old signature HOT 12
- Signature that seem corrupted right after signing. HOT 18
- fail on pip install endesive - python 3.11.1 HOT 4
- Signature validation failure for european commission DSS HOT 6
- Multiple certificates HOT 7
- USB dongle with ".cer" extension file as signature certificate.Auto digital sign in HOT 1
- How to verify adbe.x509.rsa.sha1 signature? HOT 2
- release versioning HOT 1
- Test suite fails for HSM HOT 3
- Placing the signature image at an exact co-ordinate in the PDF file HOT 4
- Potential vulnerability: An attacker who uses this vulnerability can craft a PDF which leads to unexpected long runtime. This quadratic runtime blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage HOT 3
- The certificates in examples/ca/ have expired HOT 1
- Label text not visible in signature box since 2.0.11/2.0.12 HOT 4
- Signature not intact after signing with Google Cloud KMS HSM HOT 13
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 endesive.