title: What replaces Phrase in itext7?
body: <p>The itext 5 code in our codebase uses &quot;Phrase&quot; as below. Is there any equivalent in itext 7? I think the substitute for &quot;Chunk&quot; could be &quot;Text&quot; in itext 7 and I know the workaround for Font. But couldn't find anything for Phrase.</p>
  <pre><code>import com.itextpdf.text.Chunk;
  import com.itextpdf.text.Font;
  import com.itextpdf.text.Phrase;
  
  public class PdfUtils {
  
      public static void setFont(Phrase phrase, Font font) {
          if (phrase == null) {
              return;
          }
          for (Object object : phrase) {
              if (object instanceof Chunk) {
                  Chunk chunk = (Chunk) object;
                  chunk.setFont(font);
              }
  
          }
          phrase.setFont(font);
      }
  }
  </code></pre>