Your background image does not match high resolutions; it will not look great in print. A.
I do not know wkhtmltopdf itself, but your body already has absolute dimensions (in inches). This is probably a problem. Your body has a maximum size, the content also has an absolute size (due to the pixel sizes of the background image).
This is not a good starting point for html-to-print conversions, and PDF is essentially printable.
what to do (intermediate)
- remove size limits from the body
- wkhtml ... has a switch called
zoom , 1.5 should be a suitable value to fill the page - use page size a4
what to do (the "right" way)
- remove size limits from the body
- create background borders (black) with html elements and css style
- refrain from defining rules for "width" for them. You will only need to determine the "width" once, all other widths should be set to "auto". Height
- will prove difficult, as divs reach a level sufficient for their content. But installation height: 100% does not take into account the size of borders and fields.
- that the yellow cross can also be designed in css or in higher resolution png / jpeg
- Use only "real" sizes. This means that you are not using pixels, use dots, inches or mm. You can use% values, but make sure that they are% of real size values (this means that at some point the parent element has a real size)
source share