pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

Image scale with height only

Open danosaure opened this issue 6 years ago • 1 comments

The documentation says the image should scale when only width is defined. But I tried to defined height only, and the image was stretched to some "random" value.

Could the image be scaled if only height is defined? Right now, I'm forced to use this workaround:

fit: [ height, pageWidth - (2 * pageMargin) ]

danosaure avatar Jun 27 '19 11:06 danosaure

this would be huge to have, i have columns with images in it and have to currently scale by width, it looks back. any idea how to get around this?

th3impal3r avatar Jun 17 '20 20:06 th3impal3r