I need to create a layout with an image on the left and text to the right of it. While the image width is known, the text length is not.

I want to be able to write the text and be able to determine where on the Y axis I need to addImage for the next image.

Thank you.

有帮助吗?

解决方案

The PDF class exposes this public method: pdf.getY()

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top