DV : handle fiilgrane image on pdf if not exit
This commit is contained in:
parent
1f762c759d
commit
9bd15afb8c
@ -68,6 +68,7 @@ class InvoiceGroupPdfHandler extends FPDF
|
||||
}
|
||||
function AddWatermark()
|
||||
{
|
||||
try {
|
||||
$this->SetAlpha(0.2);
|
||||
|
||||
$imagePath = $this->logoPath . "filigrane_pdf.png";
|
||||
@ -89,6 +90,10 @@ class InvoiceGroupPdfHandler extends FPDF
|
||||
// Ajouter l'image en filigrane
|
||||
$this->Image($imagePath, $x, $y, $width, $height); // Chemin, position x, position y, largeur, hauteur
|
||||
$this->SetAlpha(0.1); // Définir l'opacité
|
||||
} catch (\Throwable $th) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function SetAlpha($alpha)
|
||||
|
||||
@ -61,6 +61,7 @@ class InvoicePdfHandler extends FPDF
|
||||
|
||||
function AddWatermark()
|
||||
{
|
||||
try {
|
||||
$this->SetAlpha(0.2);
|
||||
|
||||
$imagePath = $this->logoPath . "filigrane_pdf.png";
|
||||
@ -82,6 +83,10 @@ class InvoicePdfHandler extends FPDF
|
||||
// Ajouter l'image en filigrane
|
||||
$this->Image($imagePath, $x, $y, $width, $height); // Chemin, position x, position y, largeur, hauteur
|
||||
$this->SetAlpha(0.1); // Définir l'opacité
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function SetAlpha($alpha)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user