Non rectangular FormattedTextArea

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for Java (v7.x)  /  Display Thread

DynamicPDF Generator for Java (v7.x) Forum

 Feb 26 2013 5:42 AM
Hi there!

I need to create a document with an image and texts.
I would like to have the text surrounding the image.

Does anybody have an idea to do that easily ?

(I tried with table as layout, but there is always some vertical spaces excess, because the image height is not a multiple of the height of the used font)

Thanks for your answers!
Posted by a ceTe Software moderator
Hello,

It is not possible to create non-rectangular FormattedTextArea and the FormattedTextArea will not automatically flow around an image. What you might be able to do is to take advantage of the overflow methods available on the FormattedTextArea. Create an initial FormattedTextArea with a specified height and width and add it to the page, if some content does not fit in the initial FormattedTextArea the overflow methods will return a new object with the overflow content. You can add this new FormattedTextArea wherever you want on the page by specifying the x & y co-ordinates.

Thanks,
ceTe Software Support Team.
Thanks for your answer, but there is an issue to it : the overflow method return a FormattedTextArea with same dimensions as the previous FormattedTextArea. So, it's impossible to flow around an image with it.
 Feb 27 2013 11:53 AM
Posted by a ceTe Software moderator
Hello,

It is not possible to reset the width for the overflow FormattedTextArea and also it is not possible to add the text around the image using a single FormattedTextArea using our DynamicPDF Generator product.  You can use TextArea page element which takes normal text and add the text around the image by getting overflow text and setting the calculated width, height, X and Y position coordinates. You can refer documentation on text continuation here.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 1:49 PM.