3

I need to know if its possible to combine two Chunk from iTextSharp

Phrase phrase = new Phrase();
var text1 = new Chunk("hello");
var text2 = new Chunk("world");

phrase.add();

I want to combine text1 and text2, and then add them to a phrase.

Alex Logvin
  • 766
  • 10
  • 12
Raul Pechero
  • 101
  • 1
  • 6

1 Answers1

6

FIXED

I already fixed it doing this

var text1 = new Chunk("hello");
var text2 = new Chunk("world");
var phrase = new Phrase();
phrase.Add(text1);
phrase.Add(text2);
Alex Logvin
  • 766
  • 10
  • 12
Raul Pechero
  • 101
  • 1
  • 6