I use wkhtmltopdf to produce A4 sized PDFs. When I create a tag and set its style to height: 297mm; width: 210mm (which is the defined size
tag and set its style to height: 297mm; width: 210mm (which is the defined size
height: 297mm; width: 210mm
I had a method that worked for me that used margins.
style="margin:0,auto"
If that doesn't work try:
style="margin:0,auto,0,auto"