I am trying to generate a document (this part works correctly) that must have a logo in the top right corner (this does not work).
What is the problem with my code here? I double checked the file exists and is readable. Tried to move things around, googled usage examples, but still stuck with TCPDF silently not displaying the image.
$generator = new TCPDF('L', PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// set header and footer fonts
$generator->setPrintHeader(false);
$generator->setPrintFooter(false);
// set margins
$generator->SetMargins(10, 10, 10);
$generator->AddPage();
$generator->SetFont('helvetica', '', 8);
$generator->writeHTML($html, true, false, false, false, '');
$generator->ImageSVG(
$file = ('path/to/my/file.svg'),
$x = 250,
$y = -10,
$w = '',
$h = 50,
$link = '',
$align = '',
$palign = '',
$border = 0,
$fitonpage = false);
return $generator->Output('generated.pdf', 'S');