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?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/10/16, 10:00 AM|
|Seen: 136 times|
|Last updated: 11/10/16, 11:15 AM|