Hello,
I am using Prince to generate PDF from HTML with a 10-column css grid system with floated divs.
I noticed that changing to some page sizes breaks the grid system.
I was able to narrow down the problem to the units used when defining the page size.
E.g.
With this the grid system renders fine:
But with this definition the boundaries are not calculated correctly and the grid is broken:
Note that these are the dimensions of the A4 paper size only in different units.
I have attached a test HTML file, which can be used to reproduce the problem + the outputs using the mentioned definitions.
Anyway thanks for the great product - I am still evaluating the free version, but will definitely buy a license.
I am using Prince to generate PDF from HTML with a 10-column css grid system with floated divs.
I noticed that changing to some page sizes breaks the grid system.
I was able to narrow down the problem to the units used when defining the page size.
E.g.
With this the grid system renders fine:
@page {
size: 8.27in 11.69in;
margin: 10pt
}
But with this definition the boundaries are not calculated correctly and the grid is broken:
@page {
size: 210mm 297mm;
margin: 10pt
}
Note that these are the dimensions of the A4 paper size only in different units.
I have attached a test HTML file, which can be used to reproduce the problem + the outputs using the mentioned definitions.
Anyway thanks for the great product - I am still evaluating the free version, but will definitely buy a license.