Lomill Posted January 31, 2020 Share Posted January 31, 2020 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. Quote Link to comment https://forums.phpfreaks.com/topic/309958-certgenphp-help-with-margins/ Share on other sites More sharing options...
requinix Posted January 31, 2020 Share Posted January 31, 2020 According to the README, the constants are called "MARGIN_LEFT" and "MARGIN_RIGHT". Quote Link to comment https://forums.phpfreaks.com/topic/309958-certgenphp-help-with-margins/#findComment-1573937 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.