PDF ohne PWD in V1.4; FDPI hinzugefügt

This commit is contained in:
aschwarz
2023-08-24 12:52:17 +02:00
parent 2d73a1b10b
commit 3f9a0b1cc4
191 changed files with 19632 additions and 0 deletions

32
dashboard/print.php Normal file
View File

@ -0,0 +1,32 @@
<?php
require('../fpdf186/fpdf.php');
require_once('../fpdf186/FPDI-master/src/autoload.php');
use setasign\Fpdi\Fpdi;
$pdf = new FPDI();
#$pdf->AddPage();
#$pdf->SetFont('Arial','B',16);
#$pdf->Cell(40,10,'Hello World!');
$pages_count = $pdf->setSourceFile('./test.pdf');
for($i = 1; $i <= $pages_count; $i++)
{
$pdf->AddPage();
$tplIdx = $pdf->importPage($i);
$pdf->useTemplate($tplIdx, 0, 0);
if($i == 1){
$pdf->SetFont('Arial','B',20);
$pdf->SetY(5);
$pdf->Cell( 0, 10, '1', 0, 0, 'R' );
}
}
$pdf->Output();
?>

BIN
dashboard/test.pdf Normal file

Binary file not shown.