Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
10999 Näkymät

Hi Community,

I am trying to generate a PDF report with some product lines in a TABLE. If the content exceeds the first page of the report and page-break happens, the contents are starting from a fixed position. I gave margin-top to the class page and it's only affecting the first page. Any Solution?

NB: Common for all Versions and only ODOO defined classes for QWEB reports are using.

See The Same Issue Referenced Here:

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1524


Avatar
Hylkää
Paras vastaus

Hi,

Try this

.page-break { page-break-before:always; margin-top: 10px;}


Avatar
Hylkää
Tekijä

sure, let me try.

Tekijä

I can add this inside the report template, right?

You can add class in css and use it with div or directly add this line in template

<div style="page-break-before: always; margin-top: 10px; "/>

Tekijä

is there a class named page-break?

Tekijä

This is not working.

Tekijä

I am not asking to give a margin-top to a div, but for the content after a page break

Sorry, I have misunderstood it,

It is wkhtmltopdf issue,

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1524

You can use web.basic layout in the template until it fixed.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
tammik. 24
1825
1
heinäk. 24
6443
2
toukok. 18
13617
1
helmik. 22
2367
0
helmik. 21
2612