Hello. Is there any specific method to set dynamic...
# advancedpdf
b
Hello. Is there any specific method to set dynamic image size in PDF template please? So that we can avoid image stretching issue
s
I hard coded the length and width of the rendering.
b
how? the image sizes are different per record
s
We only use one logo so it was easier to hard code it
j
There is a CSS-based approach you might try. To use this, you'll want to remove the height and width attributes from the html element:
Copy code
img {
  width: 125px,
  height: auto
}
tbh, haven't tried this in FTL templates. Hope it helps.