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.
- you can use table make paragraph , image appear on same line.
- use
setabsolutepositionon image set exact position, e.g.myimg.setabsoluteposition(400f,400f);. set position of image wherever want , can set text on same line.
Comments
Post a Comment