Comments (4)
I haven't touched this piece of code since 2022, could there be another reason?
Missing fonts, damaged fonts, ... ?
Another version of python? (I have 3.11 now)
Or this piece of program (endesive/pdf/PyPDF2_annotate/pdfttf.py) has a problem and calculates character sizes incorrectly.
Without an example of the signed file and configuration, it's hard for me to find the reason.
Can you prepare an example?
from endesive.
Thanks for your response. I have 2 examples for you:
endesive-2.0.10.pdf
endesive-2.17.0.pdf
I see a difference in the signature, 2.0.10 uses /PDFANNOTATORFONT1
while 2.17.0 uses /Helvetica
, but I don't have enough experience with the PDF format.
I'm using Python 3.10 on Ubuntu 22.04.
from endesive.
Adding new annotation methods does not properly handle PDF resources.
Now it works, but requires deeper analysis of annotating and saving resources (fonts, images, ...) to the pdf file.
There is a chance that something is not being saved.
Please check the git version.
from endesive.
The git version looks good, the signature text is visible again in all PDF viewers. In my tests, all embedded fonts and images are still there after singing.
Thanks for this quick fix!
from endesive.
Related Issues (20)
- 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
- Signature not intact after signing with Google Cloud KMS HSM HOT 13
- SyntaxWarning: invalid escape sequence '\c' b_("c") : b_("\c"), HOT 1
- cert ok? False why? HOT 3
- cert ok? False...why? HOT 2
- Signing a zip file (with HSM) HOT 2
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.