The borders are not showing properly whenever I use "print as pdf" in quote and invoice module. Version 7.13.0

The borders are not showing properly whenever I use “print as pdf” in the quote and invoice module.
Version 7.13.0 .
PHP version - 8

HTML is already there in the pdf template module for border.

How can we fix it.

Did you ever figure this out?