Comments (32)
The pdf_annotations library helped me create a visible signature that does not print :), you need to add two elements in the signature parameters:
b'signature ': b' some description to appear on the pdf document '
b'signaturebox ': (0, 0, 100, 100) - where to put it on the first page
from endesive.
Instead of a words
https://raw.githubusercontent.com/m32/endesive/master/examples/pdf-signed-cms-ar-screenshot.jpg
from endesive.
Hi @savsgio we can test this
from endesive.
pdf-dump.py shows the signature ByteRange and the signature itself.
From readers only, Acrobat Reader is able to display the signature panel.
It is possible to put a picture with a signature on the page, but I have not implemented this option.
from endesive.
Hello!
I'm having a similar issue. I followed the pdf-sign-cms.py example but I can't verify the signature on hthe .pdf generated using a viewer as Acrobat Reader. It seems that it doesn't contain a signature.
Also I used sigpdf but it says that the document doesn't have a valid signature.
Can you send me a .pdf that you generated using endesive that contains a valid signature? Or the signatures generated by endesive are only verifiables by endesive itself?
I needed to modify a bit the example because I'm using an HSM using python-pkcs11 library in order to sign the document.
PS: I'm talking about a "byte-level signature". I don't care if it "shows" something on the document.
from endesive.
That's great! Can you upload that pdf file? I'd like to compare it with the one that I generated and see where is the difference and why my pdf file doesn't show a proper signature.
from endesive.
You will generate the same files after running the examples
from endesive.
It is possible to put a picture with a signature on the page, but I have not implemented this option.
@m32 I want to be able to show the signature on the page. Are you planning to implement this?
from endesive.
I would also like to see the signature on linux but at the same time I do not want to use many libraries. In addition, I would like the signature to be non-editable and unprintable, and I do not know how to do that
from endesive.
hi. i have encountered the following issue: PDF-1.4 doesn't get the signature (generated with PyPDF2 version 1.26.0), while PDF-1.5 or PDF-1.7 (of same file generated through CTRL+P Save as PDF) does. do you know why would it be so?
from endesive.
I do not understand where ctrl-p is in pypdf and how it affects the signing process?
Any example or traceback ?
from endesive.
Hi,
It's working here....
Did you want to see the signature in the document text, like a water mark?
from endesive.
I do not know how to add a non-editable and non-printable note with information about the certificate, and the subsequent signing should extend it (?) while signing pdf
from endesive.
I would also like to see the signature on linux but at the same time I do not want to use many libraries. In addition, I would like the signature to be non-editable and unprintable, and I do not know how to do that
Hi. I am also interested in this option. If you do not plan to implement it, can you indicate how it would be done to make your own implementation?
from endesive.
Is there any way to link the annotation to the signature?
This way, when you click on the image or the annotation, the signature information will be available.
Thank you !!
from endesive.
Yes it is possible (popup dialog) but I wanted a static element without the possibility of editing, printing and without the need to click to see it.
from endesive.
What would I have to do to link it?
from endesive.
Could you share with us some example, please?
from endesive.
juhu20 - Only a acrobat reader under windows (mac?) has this functionality, nothing under Linux can show the signature panel or link from annotations to the dialogue with the signature
from endesive.
Don't worry we need that under windows with adobe acrobat
from endesive.
from issue #24 - use annotation as button to open acrobat signature panel
In cms.py
line 206
replace /FreeText by /Widget
and add
/SM(TabletPOSinline) at line 217
from endesive.
Hi, when i sign my pdf with cms, I did't see the signature in this. How to show it? Thanks!
I have had the same problem. And I have discovered that it is because of the pdf version.
With version 1.4, you see the signature panel, but with a later version, no.
from endesive.
@martin-rubio-palao pdf-lineized.pdf has version 1.6 and is linearized, try to sign this file - the signatures are shown correctly. It is not a matter of the pdf version.
from endesive.
@m32
How was the pdf-linearized.pdf of the example generated? My signed pdfs do not appear in the Adobe Reader signature panel.
from endesive.
Image of a document that didn't work
Image of a document that worked
from endesive.
@jadsonbr I have no idea how pdf-linerized. was generated. Pictures with document properties will not tell me anything, the content of the document is important. I can only help if you share your pdfs.
from endesive.
Thanks for the library, it's helping me a lot.
Below are the documents that I took the tests. I hope you can help me with this question.
from endesive.
Pass both documents through some validator, working.pdf has acceptable errors, not-working.pdf has their mass. Acrobat Reader with a signed document behaves differently than with an unsigned one - it is more restrictive. This could also be another reason :(
The file:working.pdf is not valid, error(s) :
4.1.2 : Transparency error, ca entry in a ExtGState is invalid
7.1 : Error on MetaData, Missing Metadata Key in catalog
The file:not-working.pdf is not valid, error(s) :
1.4.8 : Trailer Syntax error, A Catalog shall not contain the OCPProperties entry
4.1.3 : Transparency error, BlendMode value isn't valid (only Normal and Compatible are authorized)
4.1.2 : Transparency error, CA entry in a ExtGState is invalid
4.1.2 : Transparency error, ca entry in a ExtGState is invalid
4.1.3 : Transparency error, BlendMode value isn't valid (only Normal and Compatible are authorized)
2.2.1 : Invalid graphics transparency, Group has a transparency S entry or the S entry is null [COSDictionary{COSName{Length}:COSInt{150};COSName{BBox}:COSArray{COSFloat{-10.7183};COSFloat{397.708};COSFloat{556.819};COSFloat{-9.28613};};COSName{Group}:COSObject{COSDictionary{COSNam.....
from endesive.
The PDF that worked was generated from a word document, but what didn't work was generated from Adobe illustrator CS6 software. Exactly the one generated by Adobe's own system has more problems?
Could you tell me what the requirements are for me to have a document with a signature panel normally?
from endesive.
I don't know this definition, so I can't answer.
Validator shows incompatibilities with PDF/A, so apparently Adobe software is not compatible with it.
from endesive.
@m32 ok, thanks for your time and the library.
from endesive.
@jadsonbr - thanks for reporting next bug, the xref array does not overwrite the item at position 1
from endesive.
Related Issues (20)
- 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
- 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
- Signature box/ text appearance HOT 2
- Lack of documentation
- Cryptographic API Misuse Vulnerability HOT 1
- Green Tick mark not visible in Signature panel HOT 3
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.