After making a payment the error "Error. Exception: 'The data buffer was empty.'." is shown. The order is created but the payment email is not sent. We are using the plugin Stripe Direct Payment
I published here the solution for other customers.
The issue was in PDF logo. https://www.nopcommerce.com/en/boards/topic/98903/argumentexception-the-data-buffer-was-empty?srsltid=AfmBOorYXUv-E-GuMzqcULgLQNhk4zablddfYnKt_AxMp1cumeXNwbzA