Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2496 Представления

e have few reports that need to print into table and more specific in a single `<td>` one or more images.Here is the code that i use to print all images and the page-break that avoid bad image pagination:

<td width="23%" id="td_issue_image_before">     
    <!-- Images before-->    
    <t t-if="issue.image_ids">    
        <t t-foreach="issue.image_ids" t-as="attachment">         
            <div style="page-break-inside:avoid;">             
                <img t-att-src="'data:image/png;base64,%s' % to_text(attachment.image)" style="width:100%;margin-bottom:20px;image-resolution:70dpi;"/>        
            </div>    
        </t>   
    </t> 
</td>

The problem is that if the report contain a lot of images, at some point the pagination break and images overlap or cover the `<thead>` of the new pages..

There is something that can i do for avoiding it?
It's a problem related to wkhtmltopdf?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
окт. 20
9968
1
февр. 21
3881
1
апр. 25
1272
1
сент. 24
1975
1
июл. 24
1731