So, I have an application built using node WebKit, it creates an image for printing, but I can not get rid of all the fields using CSS, so here is my CSS.
<style media="print">
@page {
size: 216mm 356mm;
margin: 0; padding: 0;
width: 216mm; height: 356mm;
}
html, body {
margin: 0; padding: 0;
width: 216mm; height: 356mm;
}
img {
display: block;
width: 100%; height: 100%;
}
</style>
I tried every combination of sizes, properties and hacks, but there is still a huge margin / indent on the output. Since node WebKit is open source, I decided that I would include my C ++ hat and do it at a higher level.
Which of the thousands of files in node Webkit should be changed to stay in redirect mode?
source
share