java - Merging two paragraphs in itext to Single line -


i want create paragraph contains text , image.

paragraph pararevenue = new paragraph(); paragraph imagepara = new paragraph(); paragraph com = new paragraph(); pararevenue.add("text here"); imagepara.add(new chunk(imgrevenue, 0, 0)); imagepara.setalignment(element.align_right); com.add(pararevenue); com.add(imagepara); 

image should right aligned.

my problem coming in 2 different lines.
there way can display in single line ?

there 2 ways it.

  1. you can use table make paragraph , image appear on same line.
  2. use setabsoluteposition on image set exact position, e.g. myimg.setabsoluteposition(400f,400f);. set position of image wherever want , can set text on same line.

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -