<?php
define('FPDF_FONTPATH','font/');
require('fpdi.php');
$pdf= new fpdi();
$pagecount = $pdf->setSourceFile("pdfdoc.pdf");
$tplidx = $pdf->ImportPage(1);
$pdf->addPage();
$pdf->useTemplate($tplidx,10,10,90);
$pdf->Output("newpdf.pdf","F");
?>
How to read a PDF File Using PHP ?How to read a PDF File Using PHP and how to insert into MYSQL database
Page 1 of 1
1 Replies - 10158 Views - Last Post: 27 March 2008 - 02:03 PM
Replies To: How to read a PDF File Using PHP ?
#2
Re: How to read a PDF File Using PHP ?
Posted 27 March 2008 - 02:03 PM
Are you asking how to store the actual file in the database. If it is this I would not recommend it. A better way to store this information is store the file on disk somewhere, and store the file path to the location of the pdf in the database.
However if you are so inclined to store the file in the database, look up blobs and mysql on google, or "how to store files in the database", I'm sure this will be what you want.
However if you are so inclined to store the file in the database, look up blobs and mysql on google, or "how to store files in the database", I'm sure this will be what you want.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|