Hello! I am trying to prepare an Advanced PDF temp...
# general
m
Hello! I am trying to prepare an Advanced PDF template that works well for any logo ratio. I got that CSS3 styles as object-fit is not supported so I tried old CSS solutions like:
Copy code
<div style="border: 1px solid grey; width: 50mm; height:25mm; position: absolute; top: 0; left: 0;overflow: hidden;">                              
                <#if companyInformation.logoUrl?length !=0>
                   <img src="${companyInformation.logoUrl}" style="width: 100%; height: auto;"/>
                </#if> 
			   </div>
But it does not seem to work. I see an empty block. Does anybody managed to achieve something like that? Thanks in advance.