I have troubles making content to have exact same size as my page. Whe processed to pdf the page crops my content.
Here is screenshot, left side is ok, but top and right corners are cropped:
Here is my sample html:
Is there any way tom make it precise, or some hacks to round/precalculate it in the same way as prince does, if it is some kind of floating point value problem.
Here is screenshot, left side is ok, but top and right corners are cropped:
Here is my sample html:
<html>
<head>
<style>
@page {
size: 70mm 40mm;
margin: 0;
padding: 0;
marks: crop;
}
* {
margin: 0;
padding: 0;
}
#test {
width: 70mm;
height: 40mm;
box-sizing: border-box;
background: cmyk(0.1,0.1,0.1,0.1);
color: cmyk(0,0,0,1);
}
</style>
</head>
<body>
<div id="test"></div>
</body>
</html>
Is there any way tom make it precise, or some hacks to round/precalculate it in the same way as prince does, if it is some kind of floating point value problem.