Posts

How to Creat PDF file in PHP while Submit the Form

First open fpdf.org and Download Zip of class file in your System. UnZip the download files in folder and rename the folder "fpdf ". Put this folder in the Server[in your application folder] from where it will be call. fpdf.php file is the Key file of this total process. All class are written in this File. so Be careful about it. now in your PHP code ....... in the file where want to show this PDF file. In Demo.php if ($_REQUEST['submit'] == "submit") { # hear you can put what ever code you want .......................... # # Now for PDF creation you have to put this code..... require('fpdf.php'); class PDF extends FPDF { } //Instanciation of inherited class $pdf=new PDF(); $pdf->AliasNbPages(); $pdf->AddPage();

DhrubaJyoti Dey

Welcome to DJ World.