Jump to content

Lomill

New Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Lomill's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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.
×
×
  • 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.