Hi @magicflyingship,
We do not add those icons by default. Does these icons also appeared before installing the mPDF extension?
Its unrelated, I will dig into the payment gateway I have installed. The payment icons are done by me, and were implemented to work inside of the payment page. They look fine inside of default woocommerce invoice on the mail and payment page though.
Thanks for providing more details.
You can try this code snippet to resize the image within the payment method value:
/**
* PDF Invoices & Packing Slips for WooCommerce:
* Adds custom styles to the PDF documents
*/
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
if ( $document_type == 'invoice' ) {
?>
/* Set a specfic width for the payment icons */
tr.payment-method td img {
width: 2cm;
}
<?php
}
}, 10, 2 );
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters