Mpdf and yesno image

EUR-Webmaster

New Member
I`m trying to PDF a form but run into some problems.
The debugPDF output show this next line. But the the selected answer is not visible in the pdf (from other elements they are)
HTML:
<img src="https://domain.nl/plugins/fabrik_element/yesno/images/0.png" alt="Ja">

According the mpdf documentation it should show something
https://mpdf.github.io/what-else-can-i-do/images.html
adding a simpel line like <img src="/plugins/fabrik_element/yesno/images/0.png" width="90"> also does not show an image in the pdf

For the debug line '$mpdf->showImageErrors = true' i have no idea where to place it.

the documentation (http://fabrikar.com/forums/index.php?wiki/pdf-output/)
is mentioning this below, but this if for dompdf and the yes/no doesn`t use and icon but an image so i think this is outdated.
To display yes/no (domPDF standard fonts don't support the IcoMoon icons)
Code (Text):
#{$form} .icon-checkmark:before {content:'yes'}
#{$form} .icon-remove:before {content:'no'}

Can someone point me in the right direction?

update:
GD Support is enabled according php info
 
Last edited:
Try using the relative path on the server. Something like
Code:
/home/xyz/public_html/plugins/fabrik_element/yesno/images/0.png
 
No, luck. Is there an option to do a find and replace if i can replace the image with a text then is also fine.
I think i should place the replace some where in the default.php

Update:
In the default_group.php line 49 i replaced:
PHP:
echo $this->loadTemplate('group_labels_side');
with:
PHP:
echo str_replace('<img src="https://domain.nl/plugins/fabrik_element/yesno/images/1.png" alt="Ja" class="fabrikImg" />',"&nbsp;Ja",str_replace('<img src="https://domain.nl/plugins/fabrik_element/yesno/images/0.png" alt="Nee" class="fabrikImg" />',"&nbsp;Nee",$this->loadTemplate('group_labels_side')));

depending on your form choice should also replace it at other loadtemplate options
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top