How To add item image in custom print format?

Hi, i am facing a new problem when I try to add an item image it won’t display. so anyone to know how to do this please let me know.

Check that the path to the image is correct

Try something like

{% if doc.image_field_name %}
    <img src="{{ doc.image_field_name }}" alt="Image">
{% endif %}

2 Likes

nice, thankyou very much. it is helpful for me too. I appreciate this codes.

@Yamen_Zakhour

I am having the same problem, where do we add this code please ?

Thank you for guidance.

In custom print format / HTML block

1 Like

Thank you for your reply @Yamen_Zakhour

In Purchase Order - in standard print format, the Image is being shown in a very small size.

Can we increase the size of the image, to be shown in the purchase order for better understanding of Vendor’s team ?

Please guide.

What is standard print format? The default print format builder?

If you are familiar with Jinja, use HTML block to render your table so you have full control on every row width and height and inner content (if not just ask AI to do it for you)

Otherwise what you can do is open the print format in web view (full screen) inspect the image and get the css selector then add a css rule in an html block. (This might not work in pdf, only printing)