Giter Club home page Giter Club logo

Comments (8)

vbuch avatar vbuch commented on June 3, 2024 1

Hi,
1: If the signature is valid or not is not supposed to be rendered in the document. That is for the reader (Adober Reader or other) to verify and tell you.
2: Adding a box is something standard. Here is an example of how that's done with PDFKit. Also have a look at the issues tagged "visual".

from node-signpdf.

Chunkygoo avatar Chunkygoo commented on June 3, 2024

Hi,

1: If the signature is valid or not is not supposed to be rendered in the document. That is for the reader (Adober Reader or other) to verify and tell you.

2: Adding a box is something standard. Here is an example of how that's done with PDFKit. Also have a look at the issues tagged "visual".

Thanks for the reply. I agree with you on 1, but the link I attached seems to be able to link the box to Adobe reader's "signature panel". Any idea how that's done?

from node-signpdf.

vbuch avatar vbuch commented on June 3, 2024

The widget (one that is not [0, 0, 0, 0]) as shown in the linked example will appear in the document active element (hoverable) in my Adobe Reader.
image

Clicking it will open up the Signature Validation Status dialog for this signature.
image

from node-signpdf.

Chunkygoo avatar Chunkygoo commented on June 3, 2024

which widget exactly? is it the addVisual function you're talking about? https://github.com/vbuch/node-signpdf/blob/develop/packages/examples/src/pdfkit010-with-visual.js#L82

Also, do you mind showing the full dialog of the 'Signature Validation Status' image please just so I can make sure it is indeed what Im looking for?

from node-signpdf.

vbuch avatar vbuch commented on June 3, 2024

No. I'm not talking about addVisual. That just draws something. I used the word "widget" intentionally. I don't think it can be more readable really: https://github.com/vbuch/node-signpdf/blob/develop/packages/examples/src/pdfkit010-with-visual.js#L96

README here then node src/pdfkit010-with-visual.js. Output will be in the output dir. Then you can make sure it is what you are looking for.

from node-signpdf.

troyam avatar troyam commented on June 3, 2024

What version of node are you using?

from node-signpdf.

lutfi-haslab avatar lutfi-haslab commented on June 3, 2024

How to add image or annotation with pdf-lib? As far as i know, pdfkit only for creation, cause i dont find load function like in pdf-lib.

from node-signpdf.

vbuch avatar vbuch commented on June 3, 2024

@troyam

% node --version
v21.1.0

@lutfi-haslab pdf-lib allows you to load. It also allows you to add whatever you want to the document. The only thing missing is incremental updates so multiple signatures are not possible with it. If you are asking about pdfkit, I'm sorry but I don't know a way to do it with pdfkit. That is actually why the plain placeholder helper exists.

from node-signpdf.

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.