Support » Plugin: Gravity PDF » How does it work with the signature addon?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jake Jackson



    When creating a custom PDF template you can access all the form data through the $form_data array, including the signature image that gets saved using the GF Signature Add On. Review the documentation on accessing the form data in a custom template.

    The first signature can be accessed using $form_data[‘signature’][0] and can be printed to the PDF by using echo in a custom template:

    echo $form_data[‘signature’][0];

    I hope this helps.


    I try this code example-teplate (first : print_r($form_data); exit(); and then //print_r($form_data); exit(); ) :

    /** Uncomment the following line when figuring out how to access the $form_data array */
    //print_r($form_data); exit();

    /* get all the form values */
    $date_created = $form_data[‘date_created’];

    $first_name = $form_data[‘1.Name’][‘first’];
    $last_name = $form_data[‘1.Name’][‘last’];

    $address_street = $form_data[‘2.Address’][‘street’];
    $address_city = $form_data[‘2.Address’][‘city’];
    $address_state = $form_data[‘2.Address’][‘state’];
    $address_zip = $form_data[‘2.Address’][‘zip’];
    $address_country = $form_data[‘2.Address’][‘country’];

    $phone = $form_data[‘3.Puhelinnumero’];
    $signature = $form_data[‘4.Allekirjoitus’];
    $signature = $form_data[‘signature’][‘4’];
    $signature = $form_data[‘signature’][‘0’];

    /* format the template */

    and template down :

    <p class=”signature”>
    Jake Jackson
    <?php echo $signature; ?>
    <?php echo $form_data[‘signature’][0]; ?>

    Developer, Gravity Forms PDF Extended

    But nothing signature with PDF ?? What is wrong? Sorry my bad english 😉

    I can able to do all of the other fields except signature my custom .PDF template. Signature’ll be a link to e-mail, but it does not appear as an image with .PDF document.

    i do not know what i code wrong 🙁 .

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How does it work with the signature addon?’ is closed to new replies.