콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
11162 화면

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


아바타
취소
베스트 답변

Hi,

Try this

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


아바타
취소
작성자

sure, let me try.

작성자

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; "/>

작성자

is there a class named page-break?

작성자

This is not working.

작성자

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.

관련 게시물 답글 화면 활동
1
1월 24
1924
1
7월 24
6591
2
5월 18
13760
1
2월 22
2473
0
2월 21
2665