I'm confronted in integrating a pdf to my project with some css. But there it comes that I need to actually add an image.
I saw that there is KnpSnappyBundle
available, but my css actually works without it as I can add colors and everything. My only question is how can I add an image without using any bundle ?
I tried with a twig link in the html like this
<img class="logo" src="{{ asset('images/logo.png') }}">
I tried with an absolute path like this
<img class="logo" src="{{ asset('images/logo.png', absolute = true) }}">
I tried to add it in the css too:
.logo {
background: url('images/logo.png');
background-size: cover;
height: 100px;
width: 100px;
}
the pdf opens but there is no logo.
So does anyone have an idea on how to do it?