cPdfWriter Library

Go to download page
for source and binary files.

PHP5 class for exporting PDF documents based on FPDF and other related scripts. This is LGPL software. I adjusted a lot of things and included/adapted many more options.

You can now include in your PDF documents:

  • Transparencies (help from Martin Hall-May),
  • Gradient fills (help from Andreas Würmser),
  • Image fills,
  • Polygons,
  • Ellipses (help from David Hernández Sanz),
  • PieSlices,
  • DoughnutSlices,
  • GIF Images in addition to JPG and PNG (help from Xavier Nicolay) and…
  • also now you don’t have to worry about the “Alpha channel not supported” or “Interlacing not supported” PNG errors, I dealt with that (alpha is turned to white and interlacing is canceled), optimized it so it uses a much smaller amount of memory (help from Philip Clarke),
  • dashes,
  • and many other things.

Notes:
There was no time for a documentation yet, but the FPDF manual still applies and the new stuff is very straight-forward. You must put the cPdfWriter somewhere in your PHP include path. I recommend adding the following string to the end of your include_path in php.ini (you can change /usr/lib/php to whatever you want and the path can contain other locations):

:/usr/lib/php

copy the cPdfWriter directory in /usr/lib/php and then restart the Apache server

/etc/init.d/httpd restart

and you’re set. To use the cPdfWriter class just do

require_once(’cPdfWriter/cPdfWriter.php’);


Quick links:
OpenCoordinator.org
The OpenCoordinator Software Development Gateway.

cPdfWriter (Image_Graph Driver)
cPdfWriter (Image_Graph Driver)
cPdfWriter (Image_Graph Driver)
cPdfWriter (Image_Graph Driver)
cPdfWriter (Image_Graph Driver)
cPdfWriter (Image_Graph Driver)
cPdfWriter (Image_Graph Driver)
cPdfWriter (Image_Graph Driver)