I am building my own certificate type and so long it looks OK, but when I am using multiple certificate_print_text the different texts don't fit every time. Here ist the example:
certificate_print_text($pdf, $x, $y+10, 'C', 'arialblack', 'B', 15, fullname($USER));
certificate_print_text($pdf, $x, $y+15, 'C', 'arial', '', 10.5, $course->customtext);
certificate_print_text($pdf, $x, $y+25, 'C', 'arial', 'B', 14, $course->fullname);
The texts from the Username is OK, but, when $course->customtex is too long, it overlaps over the $course->fullname. Because the customtext is with different lenght everytime in the courses I can not set fixed area for it.
How to make it dynamic?
Thanks,
Stephan.