Web Engine
Language:
ru
en
Welcome
Templates and Database
GD2 Thumbnails
JQuery, AJAX and JS templates
Table
PDF
XLS
Debuger for JS and PHP
Captcha
Configs
PDF example
Description
html2fpdf library that based on fpdf library is used here. Use google to find more info about it.
Example
HTML code
PHP code
if($_POST[pdf]){ $file_name="test.pdf"; header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header('Content-type: application/pdf; filename=\"$file_name\";'); header("Content-Disposition: attachment; filename=\"".$file_name."\";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: 999999"); define('FPDF_FONTPATH','lib/pdf/font/'); include_once("lib/pdf/html2fpdf.php"); $pdf=new HTML2FPDF(); $pdf->AddPage(); $pdf->SetFont('Arial','',9); $pdf->DisableTags(); $pdf->WriteHTML("PDF Example
HTML
CODE
HERE
test.pdf"); $pdf->Output($file_name, "D"); exit; }
Copyright © 2010
Apycom jQuery Menus