add page nos. to existing pdf in php
<?php
require_once('TCPDF/tcpdf.php');
require_once('FPDI/fpdi.php');
$pdf = new FPDI();
$pdf->AddPage();
$pdf->setSourceFile('existing_file.pdf');
$tplIdx = $pdf->importPage(1);
$pdf->useTemplate($tplIdx);
$pdf->SetFont('Courier', '', 10);
$pdf->SetXY(20, 10);
$pdf->Write(0, "Text to be stamped");
$pdf->Output("output_sample.pdf", "D");
?>
Also in PHP:
- date using php
- Class 'App\Http\Controllers\Session' not found
- composer artisan
- What parameter should you enable if you wish for your browser to show all errors?
- array ket exists
- drupal 8 date formater service
- date format php date format)
- compress video file size php
- check if an array contains a key php
- change url header php
- arr::plunk laravel
- check if array contains a key php
- clear cache laravel ubuntu terminal
- controller in laravel 8
- exit and location page php
- echo err in php
- .catch php
- add seeder laravel
- find php
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0".
- $this
- echo getType($value)
- filter array if duplicates php
- composer get php version