Fpdf Advanced Multicell

//Fpdf Advanced Multicell
Fpdf Advanced Multicell2018-09-25T14:57:38+00:00

Fpdf Advanced Multicell

This FPDF addon class allows creation of a “Advanced Multicell” which uses as input a TAG based formatted string instead of a simple string. The use of tags allows to change the font, the style (bold, italic, underline), the size, and the color of characters and many other features.

The function is pretty similar to the Multicell function in the fpdf base class with some extended parameters.

Features:

  • Fpdf class needs minimal extension, the pdf object will be passed as a parameter to the class constructor
  • Text can be aligned, centered or justified
  • Different Font, Sizes, Styles, Colors can be used
  • The cell block can be framed and the background painted
  • Links can be used in any tag
  • TAB spaces (t) can be used
  • Variable Y relative positions can be used for Subscript or Superscript
  • Cell padding (left, right, top, bottom)
  • Controlled Tag Sizes can be used

Requirements:

  • PHP version > 5.3.0

Resources:

Example:

Source code:

content/multicell-title.txt:

content/multicell.txt:

View the result PDF