We want the left image column to be dynamic based on image size so we can't hard-code the width. The problem is, if we have long text content in the cell to the right of the image cell, it shrinks the image cell to smaller than the image size.
Prawn::Document.generate("hello.pdf") do
long_text_string = "Test Copy " * 100
table([[{image: open("https://www.placehold.it/200x200.jpg")}, long_text_string]])
end
We want the left image column to be dynamic based on image size so we can't hard-code the width. The problem is, if we have long text content in the cell to the right of the image cell, it shrinks the image cell to smaller than the image size.
Results In: