Coder Social home page Coder Social logo

universign's People

Contributors

antoinebecquet avatar drevetj avatar imhide avatar kernael avatar nicolas-besnard avatar slegrez avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

universign's Issues

Error on multi-thread usage

If two requests are made on the time on different threads, it can generate an invalid request.

1 thread, OK :

[1] pry(main)> test = -> { Universign::Transaction.new("0f7c32e2-b989-4017-87c5-d3e2a08eae52").documents.first.content.size }
[3] pry(main)> threads = [Thread.new(&test)]; threads.each(&:join)
=> [#<Thread:0x00007fc1d763c428@(pry):1 dead>]

2 threads, KO :

[2] pry(main)> threads = [Thread.new(&test), Thread.new(&test)]; threads.each(&:join)
#<Thread:0x00007fc1d8952d78@(pry):1 run> terminated with exception (report_on_exception is true):
/Users/antoinebecquet/.rbenv/versions/2.6.5/lib/ruby/2.6.0/net/protocol.rb:217:in `wait_readable': stream closed in another thread (IOError)
#<Thread:0x00007fc1d8952e68@(pry):1 run> terminated with exception (report_on_exception is true):
/Users/antoinebecquet/.rbenv/versions/2.6.5/lib/ruby/2.6.0/net/http/response.rb:382:in `inflate': incorrect header check (Zlib::DataError)

Coordinate for signers

Hello everybody, I'm using CapSens/Universign gem to create a transaction with universign. First of all, thank you ๐Ÿ˜„ . It's is really helpful.

I'm running through a problem with the position of the signature field.

here my code for this:

document_from_content = Universign::Document.new(
    name:    'another.pdf',
    content: File.open("tmp/test.pdf").read
)

signer = Universign::TransactionSigner.new(
    first_name:   "Signer's first name",
    last_name:    "Signer's last name",
    email:        '[email protected]',
    phone_number: 'SOME_PHONE_NUMBER',
    success_url:  'https://my_app.com',
    signature:    Universign::SignatureField.new(coordinate: [37,684], page: 5)
)

transaction = Universign::Transaction.create(
    documents: [document_from_content],
    signers:   [signer],
    options:   { profile: 'default', final_doc_sent: false, handwritten_signature_mode: 0}
)

I got a code 200 response from this. I can sign the pdf BUT signature stamps are not showing in the PDF generated by Universign when the transaction is completed.

Is it because of this configuration ? Or maybe I didn't understand well the different signatures configurations.

there is my question on stackoverflow :
https://stackoverflow.com/questions/64424793/ror-capsens-universign-signaturefield-the-coordinate-arent-working

I don't think this is really an issue. Can you help me with this ?

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.