How to compress PDF of invoice shipment and Creditmemo
In Magento 2.4.1 I developed below code to compress the PDF and it was working fine Recently I updated Magento to 2.4.6-p3 and now compression stoped working. app/code/Vendor/CompressPDF/etc.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”MagentoSalesModelOrderPdfInvoice” type=”VendorCompressPDFModelSalesOrderPdfInvoice” /> </config> app/code/Vendor/CompressPDF/Model/Sales/Order/Pdf <?php… Read More »How to compress PDF of invoice shipment and Creditmemo