PHP Classes
elePHPant
Icontem

Export PDF: Generate a PDF file with a listing of data records

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-11-24 (6 years ago) RSS 2.0 feedStarStarStar 43%Total: 3,869 All time: 802 This week: 540Up
Version License PHP version Categories
export-pdf 1.0GNU General Publi...5.0PHP 5, Files and Folders, Printing
Description Author

This class can be used to Generate a PDF file with a listing of data records.

It can take array of record data and generates PDF document with a listing of the data using the Haru extension.

The listing title, labels and fonts are configurable parameters.

The generated document is served for download.

Name: karikalan <contact>
Classes: 1 package by
Country: India India
Age: ???
All time rank: 77741 in India India
Week rank: 1033 Down77 in India India Down

Details
PDF export
----------

Requirements
------------
1.PHP 5.0 or above version
2.HARU library
	*) http://libharu.org/ (Download the library install it, required the libpng)
	*) http://pecl.php.net/package/haru (Install using 'pecl install haru' provide the path when installation. [--with-zlib-dir=/usr/local --with-png-dir=/usr/local --with-haru=/usr/local])

Installation
------------
1.Place the php files in the web root directory
2.Pass the 4 or 6 parameters. (If no need grouping,then don't pass the last two parameters out of 6)
	*) Associative array of records
	*) Comma separated column headers
	*) Associate array column names
	*) Title of the PDF
	*) Group column header
	*) Group column name on the associative array
3.Browse the exportPDF.php file

Tips
----
1. If you want to use windows server then edit the pdf file path on the exportPDF.class.php file. (Default linux path /tmp)
2. If you want to display any logo/image, provide the path and file on the exportPDF.class.php file.
  Files folder image Files  
File Role Description
Plain text file exportPDF.class.php Class Main PDF generation class file
Plain text file exportPDF.php Example example/functional file for use the exportPDF.class.php file
Plain text file README Doc. Details of the class file usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,869
This week:0
All time:802
This week:540Up
User Ratings User Comments (4)
 All time
Utility:50%StarStarStar
Consistency:56%StarStarStar
Documentation:68%StarStarStarStar
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:43%StarStarStar
Rank:2723
 
even example not executed
4 years ago (Muhammad Hasan Baig)
5%Star
I like and I will use this.
5 years ago (Rodrigo Brandão)
80%StarStarStarStarStar
Why not using tcpdf, fpdf or zend framework? What a bunch of ...
6 years ago (Olaf Lederer)
10%Star
Fatal error: Class 'HaruDoc' not found in \xampp\htdocs\expo...
6 years ago (Gabriel Dica)
50%StarStarStar