Hello. Advance PDF/BFO : with item images which ar...
# advancedpdf
r
Hello. Advance PDF/BFO : with item images which are not all the same dimensions how do we get it to keep the correct aspect ratio while not getting too big on the PDF ? So far looks like max-width and max-height are not supported by BFO. Any tips or tricks I can use ? Images are squashed as per the first line
n
I'm sorry I don't have an answer and maybe you already know about this but maybe the answer lies buried in this doc: https://bfo.com/products/report/docs/userguide.pdf
r
I have been looking but no easy way to scale it. BFO does not have all the HTML tricks. Hopefully they add something soon
n
Are the images the same shape? I remember the struggles with this a few years ago. I had to implement a square only image shape rule internally, then added the following to the img tag: style="object-fit: contain; width: 170px; height: 170px;" specifying exact px width and height for the images.
r
nope they are not.. and they have too many to make they resize them as well.