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

I want to set a background image to the Quotation/Sales Order PDF report and I used:

<div class="page" style="background-image: url('/sale/static/img/backgroundpage.png'); background-size: 230mm 300mm;">

It works for all the pages, except for the last one. The background image doesn't fill the last page of the PDF report if the content of that page is shorter. It gets cut off at the height where the content ends. The rest of the page doesn't have a background. I've tried setting the height of the <div class="page"> to 100% but it doesn't change anything. Any thoughts?

아바타
취소
작성자 베스트 답변

For those who would like to know, I solved this problem by adding style="page-break-after: always;" to the last element of the page.

아바타
취소
관련 게시물 답글 화면 활동
14
5월 22
47534
4
1월 25
45221
0
10월 24
1850
0
10월 24
5
1
5월 23
3416