Image not display in pdf after conversion of Html to pdf using knp-snappy in symfony 3.4

If anyone know about it then please help me... 
in my  html.twig file :

    `{% image '@FrontBundle/Resources/public/image/logo_right.png' %}
    <img src="{{ asset_url}}" alt=" Logo" />{% endimage %}

i tried also : 
     `<img src="{{ pathToWeb ~ asset('uploads/images.png') }}" /> `

but still its not working. please help

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *