You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I need to insert an image at a specific location
Is it possible to find an element by text and get its coordinates in order to insert an image in the right place based on them?
use setasign\Fpdi\Tcpdf\Fpdi;
$pdf = new Fpdi();
$pdf->SetPrintHeader(false);
$pdf->SetPrintFooter(false);
$pdf->AddPage();
$pdf->setSourceFile(base_path().'/10147.pdf');
$tplId = $pdf->importPage(1);
$pdf->useTemplate($tplId, 0, 0);
// Example code:
// search element by text
// $el = $pdf->findByText('SomeText');
//$pdf->Image(base_path().'/pechat.png', $el ->getX() + 40, $el ->getY() + 40 , 35, 35, 'PNG', '', '', true);
The text was updated successfully, but these errors were encountered:
Hello!
I need to insert an image at a specific location
Is it possible to find an element by text and get its coordinates in order to insert an image in the right place based on them?
The text was updated successfully, but these errors were encountered: