Chronoforms to PDF with checkmark

ictplanet 12 Feb, 2014
Hi, first of all sorry for my English but I'm Italian 😑
I have to pass the data received from a form in a PDF file but I have a problem with the checkbox.
I want to write in the PDF file an empty square if the checkbox is unchecked and a square with checkmark if the checkbox is checked.
I post the code that i tried, I do not know what to write after "echo".
Can you help me please?
Thank you so much!

<?php if($_POST['sic_aziendale'] == "1") {
echo " ";
}else{
echo " ";
}?>
GreyHead 12 Feb, 2014
Hi ictplanet,

It will depend on what fonts you have available in TCPDF - check to see if any of them have the characters you need (they aren't common in the standard windows fonts). If not you can probably add images to show what you need.

Bob
ictplanet 12 Feb, 2014
Hi GreyHead and thank for your reply.
I' ve also tried to show an image but I received this error:
"TCPDF ERROR: [Image] Unable to get image:"

with this code:

<?php if($_POST['sic_aziendale'] == "1") {
echo "<img src=\"/image/square.jpg\" />";
}else{
echo "Ffff";
}?>
GreyHead 12 Feb, 2014
Hi ictplanet,

Please try using a full URL for the image.

Bob
ictplanet 13 Feb, 2014
Hi GreyHead,
I'm also tried but I received the same error.
Help me please!!!
GreyHead 13 Feb, 2014
Hi ictplanet,

I'm at the end of my suggestions :-( Have you tried the TCPDF help? (that's the PDF library that the PDF action uses).

Bob
This topic is locked and no more replies can be posted.