Skip to Content
Menu
This question has been flagged
3 Replies
3410 Views

Hi,

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

Avatar
Discard
Author Best Answer

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

Avatar
Discard
Best Answer

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

Avatar
Discard