brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
696 stars 529 forks source link

Input to asp server #27

Closed gramishvili closed 10 years ago

gramishvili commented 11 years ago

Hello, could anyone help me with inputing signature to asp c# server and writing in to image. I exosted today trying to do that but no result...

dvdotsenko commented 11 years ago
  1. Get data from jSignature:

    See API section http://willowsystems.github.com/jSignature/#/about/

    Example:

    // !!!! In javascript !!!!
    var mime_data_pair = $(signature_divref).jSignature('getData', 'base30')
    // send it to server, by, for example appending it to hidden form input and submitting the form.
  2. Convert base30 to SVG

    see extras folder for .Net parts.

    Example here: https://github.com/willowsystems/jSignature/blob/master/extras/SignatureDataConversion_dotNet/tests/converter_toSVG_TESTS.cs#L107

  3. Render SVG to Bitmap

    https://github.com/willowsystems/SVG-Rendering-Engine-dotNet/blob/master/Samples/SVGViewer/SvgViewer.cs#L24

gramishvili commented 11 years ago

THKS , tomorrow i'll test it. but can i get some working example if you know or have?

brinley commented 10 years ago

Cleaning up, looks like this is sorted