I've been asked to make a php software were the admin/user can import a certificate of attendance template and then import a list of names, the software should then generate certificate images with the names from the list.
My preliminary idea was that the certificate should be in an image form and have a placeholders to be replaced by the name, for example:
Here we can replace the <Type Person's Name Here>
placeholder with the names from the list.
Unfortunately this is all theoretical, I can't just search for the placeholder in a .jpg
or a .png
file to replace it.
After some research i found that some sites provide certificates templates in a kind of an open standard .ai
and .eps
both can be opened by Adobe Illustrator and then you find that all the text is editable and you can simply replace the name placeholder, example.
The problem is that both these file types are proprietary and I doubt i can find a php library to edit them easily.
This is very similar to the situation in 20253386, except that the certificate template will need to be changed, if i had only one certificate template then i only need to know the coordinates of the name placeholder and use Imagick::annotateImage
but with importable templates I have no idea were the name should be placed based on the certificate design.
So what other options do i have ? are there any open standards to use for image templates ? is there another way to tackle this problem?