GithubHelp home page GithubHelp logo

Comments (3)

alexm7 avatar alexm7 commented on September 21, 2024

I'm having the same/similar problem when doing the svg output format. If the signature is only at the top or bottom of the signature block (or left or right side for that matter too), then the saved svg only has the height of what was actually used. So, for example, the signature area is 200 px high. The uses signs just in the top 50px. The generated svg is 50 px high. However, I don't know where that 50px is supposed to be relative to the signing line (is it the top, bottom, middle?). That makes it hard to position the generated signature on a signed document printout when I can't get it to show up with the correct vertical alignment relative to signature line in the print preview. Is there a setting to help with this?

from jsignature.

wavesource avatar wavesource commented on September 21, 2024

Hi - I solved this by editing the jSignature,js - around line 970 you need to set jSignature to load with a single point already created at x = 0 and y = 0 - this sets the top left corner of the canvas and hence the 0 reference point:

// setting up new dataEngine
data = [
{  x : [0]  , y : [0] } 
]

This will break the undo function, I believe. That's my next bug run, but probably this is not possible using this hack.

from jsignature.

Ram-Chand12 avatar Ram-Chand12 commented on September 21, 2024

when we add this code then we get only top and right cordinates but we need to find all cordinates

from jsignature.

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.