Giter Club home page Giter Club logo

pdf_sign's Introduction

Sign a pdf with Javascript

Repository to sign pdfs using PDF-LIB.js and node-signpdf

Install

  • Clone repo
  • Then install dependencies
npm i

Usage

  • Open src/index.js
  • Update the two arguments in for SignPDF class (if you do not want to use the test ones)
  • create a folder called exports in the root of the project
  • Then run this command in your terminal
npm start

pdf_sign's People

Contributors

richardbray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pdf_sign's Issues

Self Signes certificate OpenSSL

Hi,
Thank you so much for all the tutorials, videos and code you provided on the subject.
I have a question because I'm not sure I understand it completely.
Right now, In our company, we want to stop using Docusign.
I have been able to execute the code and it worked perfectly for our purpose.
My question may be selfanswering but, do I have to create one certificate per customer with OpenSSL ?
Or do I make one certificate for our company and we reuse that certificate for each customer ?

Kind regards,
Mike

At least one signature is invalid.

I'm trying to use this project to sign medical data[pdf] with (.pfx file and password) provided by the hospital.

Screenshot 2023-03-22 at 4 44 41 PM

But I get this error with the export file. If I use my own .p12 file I get the correct result, like in the tutorial. But using the (.pfx file and password) i created .p12 file. If i pass that.

Gives this error. Has someone tried different .p12 file? Please help. Thanks in advance. :)

Sign PDF with multiple signatures

The current implementation allows you to sign the PDF with one signature, i am working on a POC that involves multiple signings on the same PDF, please can you advise on how that can be implemented? The current implementation normally overrides the previous signing

date.getUTCFullYear is not a function

Thanks for your youtube channel!

warning ../../../package.json: No license field                                       
/home/hermes/Projetos/vue/pdf_sign/node_modules/pdf-lib/cjs/core/objects/PDFString.js:105
        var year = utils_1.padStart(String(date.getUTCFullYear()), 4, '0');
                                                ^

TypeError: date.getUTCFullYear is not a function
    at Function.PDFString.fromDate (/home/hermes/Projetos/vue/pdf_sign/node_modules/pdf-lib/cjs/core/objects/PDFString.js:105:49)
    at SignPDF._addPlaceholder (/home/hermes/Projetos/vue/pdf_sign/dist/SignPDF.js:58:28)
    at async SignPDF.signPDF (/home/hermes/Projetos/vue/pdf_sign/dist/SignPDF.js:29:18)
    at async main (/home/hermes/Projetos/vue/pdf_sign/dist/index.js:11:22)
error Command failed with exit code 1.    

I'm trying to run your code, but didnยดt work. I have tried to update the dependencies too, and not working here.

Did you know why?

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.