There is a big gap between the PDF generated from wkhtmltopdf to pdf, and the actual HTML, is there any way to solve it?

problem description

the PDF generated from wkhtmltopdf to pdf in java is very different. This is my parameter:
wkhtmltopdf-- disable-smart-shrinking-- dpi 150-- margin-left 0mm-- margin-right 0mm-- margin-top 0mm-- margin-bottom 0mm-- page-size A4 file:/C:/Users/Arron/Desktop/1539856696888.html out.pdf

I have tried to modify dpi and add other parameter settings, but again, the pdf, generated by modifying dpi has changed significantly, but it is still a far cry from the actual HTML page. I use Chrome browser

related codes

Parameter:
wkhtmltopdf-- disable-smart-shrinking-- dpi 150-- margin-left 0mm-- margin-right 0mm-- margin-top 0mm-- margin-bottom 0mm-- page-size A4 file:/C:/Users/Arron/Desktop/1539856696888.html out.pdf

what result do you expect? What is the error message actually seen?

Does

need to be set up to be the same as a HTML page, or is it not supported by wkhtmltopdf?
or is there something wrong with my parameter settings? Ask the boss for advice!

list items

Sep.08,2021
Menu