تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5282 أدوات العرض

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
مايو 22
46961
4
يناير 25
44676
0
أكتوبر 24
1508
0
أكتوبر 24
5
1
مايو 23
3044