Join Slack
Powered by
Hello. Is there any specific method to set dynamic...
# advancedpdf
b
Boris Yasen
12/14/2023, 6:01 PM
Hello. Is there any specific method to set dynamic image size in PDF template please? So that we can avoid image stretching issue
s
Scruffy
12/14/2023, 9:11 PM
I hard coded the length and width of the rendering.
b
Boris Yasen
12/14/2023, 9:11 PM
how? the image sizes are different per record
s
Scruffy
12/14/2023, 9:12 PM
We only use one logo so it was easier to hard code it
j
Jeff Subat
12/20/2023, 3:02 PM
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.
3
Views
Open in Slack
Previous
Next