I have created a Default invoice of Magento2 under the (sales order) option, see the screenshot: https://prnt.sc/tje4zn
This is the file path for invoice pdf of Magento2: /vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php and below is the file code,
I want to echo simple text message in the end of the file like
<?php echo "NOTE: This is not a GST invoice. This is a packing slip only."; ?>
Please help me with how I can achieve and add this message to pdf invoice format in the last as I have also mentioned in the screenshot above.
Many Thanks in Advance.
You can do so this with code, Assuming you have a custom Vendor_Invoice module: Change the path specific and module name as per yours. Put following content into the Vendor/Invoice/etc/di.xml,
Now you can create Vendor\Invoice\Model\Order\Pdf\InvoicePdf.php file & add the below code,
Hope this will helps, and please let me know if there is any issues...