How to use the eSignature extension to add electronic signature functionality to Espo

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • arrestthepresident
    commented on 's reply
    hey @telecastd,
    so i have now created several new test entities of different types, created signature fields and linked them to templates to be able to print them with dompdf. My result is that it only works very sporadically at all and then it also has a very strange behavior where sometimes one seemingly preferred field is rendered and the other is not if the preferred one is filled - if it is not filled, the other one is sometimes rendered. i just set up a new Espo (version 7.5.6) with the extensions eSignature (version 4.0.1) and Sales-Pack (version 1.2.2) and included the signatures in a new entity, created and printed a pdf template with (only!) double curly brackets around the signatures - result: only the xml text renders. I can't figure it out and now just assume that there are incompatibilities with the latest version of espo with the plugin.

  • arrestthepresident
    commented on 's reply
    i did above. thats all for testing now.

  • telecastg
    commented on 's reply
    Could you please print here the contents of the template that you are trying to use ?

  • arrestthepresident
    commented on 's reply
    Also, that print as a document seems nice as a workaround for tcpdf but with dompdf i think this is outdated... when printing with the browser-engine, most of the css gets crushed and there are no pagebreaks, so this should not be an option for me if there is no workaround for these...

  • arrestthepresident
    commented on 's reply
    ERROR: Slim Application Error Type: Error Code: 0 Message: Call to a member function get() on null File: /.../application/Espo/Modules/Esignature/Controllers/Esignature.php Line: 83

    When "Display Document in Full View" on my Entity.


    ...and i am on Version 7.5.5 and Ext-V. 4.0.1
    Last edited by arrestthepresident; 08-25-2023, 02:03 PM.

  • arrestthepresident
    commented on 's reply
    telecastg hey there, thank you. unfortunately i cannot use this feature in the entity i want (It is a Base-Plus type entity if this is of signifficance) but in another entity (that has no special type) i can. (The error-alert in the browser is "error retrieving template page format")
    If this was the Problem, this would be bad, as i need activities and history for this entity.

    also, when i use double brackets in the code above it outputs the svg-text instead. when using three i at least only get the "electronically signe..." but the signature itself above is missing.

    I'll check he logs...

  • telecastg
    commented on 's reply
    Hi,

    Please note that you must use double brackets in your template, otherwise the actual SVG code will render instead of the image.

    Not sure why dompdf is not rendering the image, as it is being captured correctly (otherwise the browser would not render it).

    Are there any error messages in the php log or in the browser console?

    We are using the esignature extension v 4.0.1 with Espo 7.4.3 without any issues, what version of Espo are you using?

    While we figure it out, if you need to print a document, you can click on "Display as Document in Full View" to render the document to the browser and use your browser's pdf engine to generate the print out.

  • arrestthepresident
    replied
    Hey there,
    i have version 4.0.1 and i cant seem to get the svg to print to the pdf using dompdf

    see screenshot:

    Click image for larger version

Name:	Unbenannt.png
Views:	659
Size:	30.2 KB
ID:	96812

    and here is my code for this section:

    HTML Code:
    <table>
    <tbody>
    <tr style="border: 1px solid #ddd;">
    <td style="vertical-align: top;">
    <p style="font-weight: bold; line-height: 0.5px; color:#77ce83; font-size:14px;">Unterschrift Auftraggeber:</p>
    </td>
    <td style="vertical-align: top;" align="right">
    <p style="font-weight: bold; line-height: 0.5px; color:#77ce83; font-size:14px;">Unterschrift Auftragnehmer:</p>
    </td>
    </tr>
    <tr style="border: 1px solid #ddd;">
    <td align="left">
    {{{signaturKunde}}}
    </td>
    <td align="right">
    {{{signaturITP}}}
    </td>
    </tr>
    </tbody>
    </table>
    In any possible configuration there is only the text that is in the output but the svg does not render. Also if i user tripple brackets and the svg gets printed as text i copied the content and pasted in a html. there the browser can render it, but sometimes there are lines missing from the signatures.

    whats wrong?

    Leave a comment:


  • telecastg
    commented on 's reply
    The esignature is just another type of field, like varchar, enum, etc..

    You can have as many as you want in your entity and include them in your templates.

  • shootify
    commented on 's reply
    Hi, is there any way to for example to request signature on delivered on the same entity, perhaps using workflow,so the pdf template will have 2 signatures, pickup and delivery?

  • telecastg
    replied
    Hi shootify,

    What I would do is to create an entity "DeviceDelivery" with the information that you require plus an esignature field and have your delivery person open up that entity on its mobile or pad device (Espo can be easily run as a web page in any mobile device) and have the customer draw her/his signature at that moment.

    Leave a comment:


  • shootify
    replied
    hi there telecastg, i have a question hope you can help me!
    I have a created a entity call device pickup, this is to record when we pick devices from customers on which upon pick up we collect customer signature, however id like to collect a signature when delivered, how do you think i should do this, want to hear from you about ideas. thanks

    Leave a comment:


  • shootify
    commented on 's reply
    thanks for the reply.

  • telecastg
    replied
    Hi shootify, unfortunately this kind of feature (integrating with a specialized hardware) would be beyond my expertise.

    Leave a comment:


  • shootify
    replied
    Hi telecastg , this is more a feature request,
    Do you think you can integrate this tool with a hardware signature pad like https://www.topazsystems.com/index.html
    thanks

    Leave a comment:

Working...