Jump to content

Certgen.php help with margins


Lomill

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.