Giter Club home page Giter Club logo

Comments (5)

Dmitrijs-Sakovics avatar Dmitrijs-Sakovics commented on June 13, 2024 1

@vbuch @dhensby
Hi,

I managed to get this working with pdfkit 0.14.0 by removing the form.end() statement (removing the whole foreach clause that .end()s all the refs after the pdfkitAddPlaceholder call)

While I am getting signed pdf-s out of it, I don't currently understand what's happening well enough to recommend this solution to others (hence no PR). It would be good if someone who knows the system could have a looks to see why this worked

from node-signpdf.

Dmitrijs-Sakovics avatar Dmitrijs-Sakovics commented on June 13, 2024 1

Yes, my attempts were based on the pdfkit010 example since the pdfkit >0.10 helper readme states "This works in an identical way to the pdfkit010 package and the pdfkit010.js example is still relevant."

from node-signpdf.

vbuch avatar vbuch commented on June 13, 2024

Hi,
I haven't really used placeholder-pdfkit. @dhensby would be best to reply here. But from what I see in the source signature and widget are already ended. Try to work around that maybe and only end the form. Ideally, once you have it working, share your code and even better prepare a PR to introduce a placeholder-pdfkit example.

from node-signpdf.

dhensby avatar dhensby commented on June 13, 2024

I'm actually using pdfmake and that uses @foliojs-fork/pdfkit instead of the actual pdfkit lib (probably because of all the problems that we've had previously with pdfkit. Their implementation of AcroForms really messed up integration and I don't recall if we ever got round to fixing it or not.

I guess that pdfkit no longer needs the .end() to be called and (if that's been taken from our examples) our examples may need updating!

from node-signpdf.

vbuch avatar vbuch commented on June 13, 2024

We just don't have a pdfkit example. We have the pdfkit010 ones and I'm guessing that's what @Dmitrijs-Sakovics here based his example on. The pdfkit010 is obviously a legacy one so... yes, an example using pdfkit > 10 is needed.

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.