Laboratorium Komputerowe Progmar
Marcin Załęczny

We are using cookies in the page. If you use the page you agree for the cookies.      Close

Advertisement template in PHP

Required: Apache+PHP, TCPDF library

Working: As a result script generate PDF document with advertisement and contact tickets

Download

Customizing advertisement

Set proper paths to TCPDF library's files near the beginning of the script. Next find place with following variables defined: header, msg, contact, bold, tickets and set them to proper parts of the advertisement:

  • header - advertisement header,
  • msg - advertisement content, average 110 characters per line,
  • contact - issuer contact,
  • bold - additional caution note in bold, placed under the content,
  • tickets - issuer contact placed on the tickets at the bottom part.