php to pdf generaton
DESCRIPTION
PHP to PDF Generaton. This is a php code to create pdfTRANSCRIPT
Sample Code :: PHP to PDF Generaton [ More Examples ]
Here is the phptopdf_url() function for creating a PDF using a URL
<?php
include_once('phpToPDF.php') ;
//Code to generate PDF file from specified URL
phptopdf_url('http://google.com','/my_directory/', 'my_pdf_filename.pdf')
;
?>
Alternatively, you can use the phptopdf_html() function to pass a varible that holds html code
for your report.
<?php
include_once('phpToPDF.php');
$html = '<html><head></head><body>contents of a report.....</body></html>
';
//Code to generate PDF file from HTML content stored in a variable
phptopdf_html($html,'/my_directory/','my_pdf_filename.pdf');
?>