Code: Select all
<?php require_once('../r/fpdf16/fpdf.php'); require_once('../r/fpdi/fpdi.php');
$pdf = new FPDI();
$tplIdx = $pdf->importPage(1);
$pdf->useTemplate($tplIdx, 10, 10, 200);
$pdf->Write(1, "Sample Text");
If user enter the xxx.com/sample.php .. link shows the manipulated pdf file in the php page.
If user enter the xxx.com/SAMPLE.pdf .. link shows the original pdf file...
How can I write the PDF file during downloading ?
Should I write special code in the httpdocs file ?
If user call .pdf extension from special directory like directory/SAMPLE.pdf
execute the special function to process pdf file.
How do I solve this problem ?
I thank you for your interest in my question.