跳至內容
選單
此問題已被標幟
3 回覆
3670 瀏覽次數

Hi,

I need to write an image to pdf as a header or other use. How can I do it

頭像
捨棄
作者 最佳答案

Hi,

Thanks for the quick reply, but actually this is not what I looking for.
in my case, I want to give a PDF file as input and I need to write a given image as the header of that PDF

頭像
捨棄
最佳答案

Hi,

If you want to show an image from the database you can just use the image widget like this:

<span t-field="o.image_field_name" t-field-options='{"widget": "image"}'/>

And if you want to show an image stored as a file:

<img t-att-src="'/module_name/static/src/img/image_name.png'" />



Thanks

頭像
捨棄