Giter Club home page Giter Club logo

Comments (32)

m32 avatar m32 commented on August 16, 2024 6

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.

m32 avatar m32 commented on August 16, 2024 2

Instead of a words
https://raw.githubusercontent.com/m32/endesive/master/examples/pdf-signed-cms-ar-screenshot.jpg

from endesive.

jichu20 avatar jichu20 commented on August 16, 2024 1

Hi @savsgio we can test this

from endesive.

m32 avatar m32 commented on August 16, 2024

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.

camilog avatar camilog commented on August 16, 2024

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.

camilog avatar camilog commented on August 16, 2024

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.

m32 avatar m32 commented on August 16, 2024

You will generate the same files after running the examples

from endesive.

absagar avatar absagar commented on August 16, 2024

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.

m32 avatar m32 commented on August 16, 2024

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.

 avatar commented on August 16, 2024

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.

m32 avatar m32 commented on August 16, 2024

I do not understand where ctrl-p is in pypdf and how it affects the signing process?
Any example or traceback ?

from endesive.

mileo avatar mileo commented on August 16, 2024

Hi,

It's working here....

Did you want to see the signature in the document text, like a water mark?

from endesive.

m32 avatar m32 commented on August 16, 2024

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.

jichu20 avatar jichu20 commented on August 16, 2024

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.

jichu20 avatar jichu20 commented on August 16, 2024

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.

m32 avatar m32 commented on August 16, 2024

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.

jichu20 avatar jichu20 commented on August 16, 2024

What would I have to do to link it?

from endesive.

savsgio avatar savsgio commented on August 16, 2024

Could you share with us some example, please?

from endesive.

m32 avatar m32 commented on August 16, 2024

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.

savsgio avatar savsgio commented on August 16, 2024

Don't worry we need that under windows with adobe acrobat

from endesive.

m32 avatar m32 commented on August 16, 2024

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.

martin-rubio-palao avatar martin-rubio-palao commented on August 16, 2024

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.

m32 avatar m32 commented on August 16, 2024

@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.

jadsonbr avatar jadsonbr commented on August 16, 2024

@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.

jadsonbr avatar jadsonbr commented on August 16, 2024

Image of a document that didn't work
not-working

Image of a document that worked
working

from endesive.

m32 avatar m32 commented on August 16, 2024

@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.

jadsonbr avatar jadsonbr commented on August 16, 2024

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.

document that worked

document that didn't work

from endesive.

m32 avatar m32 commented on August 16, 2024

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.

jadsonbr avatar jadsonbr commented on August 16, 2024

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.

m32 avatar m32 commented on August 16, 2024

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.

jadsonbr avatar jadsonbr commented on August 16, 2024

@m32 ok, thanks for your time and the library.

from endesive.

m32 avatar m32 commented on August 16, 2024

@jadsonbr - thanks for reporting next bug, the xref array does not overwrite the item at position 1

from endesive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.