PHP Classes

HTML 2 PDF Report: Generate PDF documents from HTML pages

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 28%Total: 16,054 All time: 51 This week: 104Down
Version License PHP version Categories
html2pdfreport 1.0.0GNU General Publi...4HTML, Files and Folders, Web services
Description 

Author

This class can be used to generate a PDF document from an HTML page.

The class can call a remote Web service that converts the HTML page with a given URL to a PDF document.

The PDF document generated by the remote service is retrieved and served as part of the current script output.

Picture of Rupom Razzaque
  Performance   Level  
Name: Rupom Razzaque is available for providing paid consulting. Contact Rupom Razzaque .
Classes: 12 packages by
Country: Bangladesh Bangladesh
Age: 43
All time rank: 171 in Bangladesh Bangladesh
Week rank: 93 Down4 in Bangladesh Bangladesh Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Example

<?php
/**
* HTML2PDFReport Generator Class
*
* @author : MA Razzaque Rupom <rupom_315@yahoo.com>, <rupom.bd@gmail.com>
* Moderator, phpResource (http://groups.yahoo.com/group/phpresource/)
* URL: http://www.rupom.info
* @version : 1.0
* @date 05/06/2006 modified on 06/23/2006
* Purpose : Generating Pdf Report from HTML
*/

require_once('Html2PdfReport.class.php');
$obj = new Html2PdfReport();

//pdf version
$pdfVersion = '1.4'; //change it according to your need
/*
$pdfVersion = 1.3 for Acrobat Reader 4
$pdfVersion = 1.4 for Acrobat Reader 5
$pdfVersion = 1.5 for Acrobat Reader 6
*/

//set PDF version
$obj->setPdfVersion($pdfVersion);

//set URL of the HTML file which will be converted to PDF
$obj->setUrl("http://localhost/phpclasses/sql2pdfreport/first_test.html");//change this according to your URL

//get the pdf report of the URL data
$obj->getPdfReport();
?>


Details

Class: Html2PdfReport ====================================================== This class generates PDF Report from HTML. Here's how it works: - Gets URL that will be converted to PDF - Creates PDF report for that URL by using remote application For Remote PDF Application, I have used html2ps and html2pdf (supplied by http://www.tufat.com/script19.htm). It is 100% FREE for commercial AND non-commercial use! It renders pages as PDF documents and PostScript files. I have deployed this application to phpResource(http://groups.yahoo.com/group/phpresource/) group's server for easy and reliable access. My special thanks goes to phpResource group. And Me: I am a hardcore C/C++ and PHP programmer. I enjoy my times in implementing varities of freelancing works. Please rate this class if you like and if it comes to your needs. Please feel free to contact me for any suggestion and/or further assistance regarding the technique and its implementation. ============================================================================== MA Razzaque Rupom Moderator, phpResource Group http://groups.yahoo.com/group/phpresource/ My Blog : http://www.rupom.info Emails: rupom_315@yahoo.com rupom.bd@gmail.com

Screenshots  
  • screenshot.jpg
  Files folder image Files  
File Role Description
Plain text file Html2PdfReport.class.php Class Html2PdfReport Class
Accessible without login Plain text file ReadMe.txt Data ReadMe File
Accessible without login Plain text file usage.php Example Example Usage

 Version Control Unique User Downloads Download Rankings  
 0%
Total:16,054
This week:0
All time:51
This week:104Down
User Ratings User Comments (2)
 All time
Utility:38%StarStar
Consistency:45%StarStarStar
Documentation:-
Examples:45%StarStarStar
Tests:-
Videos:-
Overall:28%StarStar
Rank:4358