schau dir mal die Funktion printInvoiceAsPDF an
https://github.com/w3scouts/w3s_li_c...voice.php#L361
da wird das PDF erstellt, allerdings über den Umweg vom Ausgabepuffer
https://github.com/w3scouts/w3s_li_c...e.php#L832-835
ich habe das wie folgt verändert:
https://github.com/katgirl/contao-li...es/Invoice.php
zudem noch ein paar Änderungen im Template
PHP-Code:
<?php if( file_exists($template['root_path'].$template['logo']) ): ?>
<img src="/<?php echo $template['root_path']; ?><?php echo $template['logo']; ?>" alt="Logo" title="Logo"><br><br>
<?php else: ?>
<img src="<?php echo $template['root_path']; ?><?php echo $template['logo']; ?>" alt="Logo" title="Logo"><br><br>
<?php endif; ?>
Lesezeichen