Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
17055 Lượt xem

I am creating qweb report and i want to add background in all page but i am getting watermark in only single page only single page can anyone help me in this?


<div class="page">

 <div style="position:absolute;text-align:center;z-index:-1;border‌​:0;opacity:0.1;paddi‌​ng-top:50px;">
 <img t-att-src="'data:image/png;base64,%s' %o.employee_id.company_id.watermark_img"/>
 </div>
</div>
this code prints watermark image in only 1st page 
how to add water mark in all pdf pages?






Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello kamlesh,

Please Visit Below Link

https://www.odoo.com/forum/help-1/question/how-to-give-watermarking-to-all-the-pages-in-qweb-report-in-odoo-10-122405

And

https://www.odoo.com/forum/help-1/question/watermarking-in-odoo-8-reports-72810


Use This Code :: 

<div class="watermark" style="position:absolute;opacity:0.25;font-size:3em;width:100%;text-align:center;z-index:1000;">
        <img t-att-src="'data:image/png;base64,'+ o.company_id.logo"/>
</div>

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Hello Palkesh 
Thanks for your response    
 i have tried this solutions but same results watermark prints only in 1st page.

Ảnh đại diện
Huỷ bỏ

yes the above given links will print the watermark only in the first page. As you need the watermark in all pages, just check the working of the header and footer which comes in all page and do it accordingly

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 20
3498
0
thg 1 24
1569
0
thg 1 24
1261
0
thg 11 23
1745
1
thg 3 23
2386