Before I start I must say I am newbie coding with php. I am looking for a certificate generator and I found this great certgen.php from this user in Github https://github.com/zedomel/certificate-generator. BUT, I am having a lo of issues trying to set up the margins of my document. Let's say I don't want any margins, I want the straigh HTML document to be in pdf without any margins.
In the github readme.md it is mention that I can define the margins on the inc/config.php document, but when I go there, there are not constants defined for the margins. I've tryed to create myself and define them as define('PDF_MARGIN_LEFT',0); and define('PDF_MARGIN_RIGHT',0); but nothing happens (I used this definitions because they are mention on the TCPDF documents). I am not sure if I am doing it in the right way BUT nothing that I've tried and check on the scripts files seems to work.
I am wondering if someone can check the script and tell me how can I define those parameters.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Certgen.php help with margins
in PHP Coding Help
Posted
Hello everyone,
Before I start I must say I am newbie coding with php. I am looking for a certificate generator and I found this great certgen.php from this user in Github https://github.com/zedomel/certificate-generator. BUT, I am having a lo of issues trying to set up the margins of my document. Let's say I don't want any margins, I want the straigh HTML document to be in pdf without any margins.
In the github readme.md it is mention that I can define the margins on the inc/config.php document, but when I go there, there are not constants defined for the margins. I've tryed to create myself and define them as define('PDF_MARGIN_LEFT',0); and define('PDF_MARGIN_RIGHT',0); but nothing happens (I used this definitions because they are mention on the TCPDF documents). I am not sure if I am doing it in the right way BUT nothing that I've tried and check on the scripts files seems to work.
I am wondering if someone can check the script and tell me how can I define those parameters.
Thanks in advance.