Hi,
I have to print 65 label with barcode on a A4 sheet, very precisely (labels to stick on products).
The labels are 21.1mm height and 38.1 width. So it's what I defined in my css. But when I generate my PDF it's seems smaller. Normally the labels have to take all the width of the A4 sheet but it's not the case. In can put 7 labels on a line but with the dimension it should have only 5 labels.
Here is my css:
.page {
text-align:center;
padding:10mm 5mm;
display:block;
border: 1px solid grey;
}
.barcode-column {
height: 21.2mm;
/*max-height: 21.2mm;
min-height: 21.2mm;*/
width:38.1mm;
/*min-width:38.1mm;
max-width:38.1mm;*/
text-align: center;
font-size: 9px;
padding: 0;
margin: 0 1.5mm;
float:left;
overflow:hidden;
border: 1px solid red;
}
.barcode-column .barcode-column-inside {
overflow:hidden;
border:1px solid green;
margin:0 10px 10px 10px;
}
.barcode-column .barcode {
font-size: 10px;
}
And the report code:
<record id="paperformat_a4_nomargin" model="report.paperformat">
<field name="name">European A4 no margin</field>
<field name="default" eval="False"/>
<field name="format">A4</field>
<field name="orientation">Portrait</field>
<field name="margin_top">0</field>
<field name="margin_bottom">0</field>
<field name="margin_left">0</field>
<field name="margin_right">0</field>
<field name="header_line" eval="False"/>
<field name="header_spacing">0</field>
<field name="dpi">96</field>
</record>
Any suggestion ?
Thank you