First I made the digital signature show in the list view. It generates an image on the fly in the list view. So, I copied the link that it used to the generated image using right click, Copy Link.
It looks something like this:
www.yoururl.com/index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=1104&formid=28&rowid=34&repeatcount=0
It uses the rowid to pull it, so in my PDF template that I made, I get the id of the record I'm making the PDF for and assign to a variable:
Code:
$regInfo = $this->groups['Your Group Name'];
$regKeys = $regInfo->elements;
$digsigID = ($regKeys['id']->element_raw);
And then I dynamically filled the image src url like this in my template where I wanted it to appear:
<img src="
https://www. yoururl.com/index.php?option=com_fabrik&task=plugin.pluginAjax&plugin=digsig&method=ajax_signature_to_image&format=raw&element_id=1104&formid=28&rowid=<?php echo $digsigID; ?>&repeatcount=0">
This makes the graphic and stores it in the PDF. Worked like a charm, and now with the new version of Fabrik, you can turn on validation for the digital signature so it has to be signed.
Word of warning, I couldn't get it to work without having the entire path, so, if you copy your site to a development copy of the site to work on, remember to go edit the path in the PDF template on your test site. I didn't and started getting the wrong signatures on the pdfs and thought I was losing my mind - but it was because the id on the live site was a different signature than my test site and it was hard coded to go to the live site.