PHP Classes

PHP Gantt charts in PDF: Output Gantt charts using PDF documents

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 805 This week: 1All time: 4,268 This week: 78Up
Version License PHP version Categories
pdf-gantt 0.92BSD License5.2PHP 5, Printing, Project Management


This class can output Gantt charts using PDF documents.

It takes as parameters an array with the details of several tasks like the task name, task start and duration, as well dependencies between tasks.

The class computes the layout of the tasks considering the dependencies and the expected start dates and durations.

It uses TCPDF to render a Gantt to show the tasks in a PDF document.

Several details can be configured like the printing area, font colors, background and referencing arrows colors, etc..

Innovation Award
PHP Programming Innovation award nominee
May 2013
Number 7

Prize: One copy of DWebPro Standard License
Gantt charts are useful to display the schedule of planned tasks sorted by time in a chart.

This class can layout Gannt charts from a list of projects with their schedules. It can also generate a PDF documents with the rendered Gannt charts.

Manuel Lemos
Picture of Alexander Selifonov
  Performance   Level  
Name: Alexander Selifonov is available for providing paid consulting. Contact Alexander Selifonov .
Classes: 20 packages by
Country: Russian Federation Russian Federation
Age: 61
All time rank: 502 in Russian Federation Russian Federation
Week rank: 28 Up1 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 16x

Winner: 2x


Creating Gantt charts in PDF document

task: Generating PDF documents with Gantt charts

Short description

PdfGantt is a TCPDF wrapper class for rendering Gantt charts as a part of created PDF document.

It has features for adjusting printing area, font colors for different text blocks, background and referencing arrows color, and other parameters. It will automatically adjust start dates for depending tasks to be starting right after "parent" tasks. List of people responsible for each task can be printed


English Russian

Class can be used standalone OR as a PrintFormPDF plugin, see it here: PrintFormPDF on github PrintFormPDF on PHPclasses

Distributed under BSD License :

  • gantt.png
  Files folder image Files  
File Role Description
Plain text file pdf_gantt.php Class Main class module
Accessible without login Plain text file gantt-sample1.xml Data XML confihuration file for example 1
Accessible without login Plain text file gantt_sample1.php Example Using example 1 (PrintFormPDF plugin mode)
Accessible without login Plain text file gantt_sample2.php Example Using example 2 (standalone)
Accessible without login HTML file pdf_gantt.en.htm Doc. Documentation (english)
Accessible without login HTML file Doc. Documentation (russian)
Accessible without login Image file gantt-screenshot.png Icon screenshot
Accessible without login Plain text file helpstyles.css Data css for help files
Accessible without login Plain text file Data readme for git 109KB
Downloadpdf-gantt-2015-03-25.tar.gz 105KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Print Form PDF Download .zip .tar.gz If used as PrintFormPDF plugin Conditional
 Version Control Unique User Downloads Download Rankings  
This week:1
All time:4,268
This week:78Up