Process() public method

Processes the element by adding it (or the different parts) to an iTextSharp.text.IElementListener.
public Process ( IElementListener listener ) : bool
listener IElementListener an IElementListener
return bool
Example #1
0
 /**
 * Write a <code>Phrase</code>.
 *
 * @param phrase  The <code>Phrase</code> item to be written
 * @param outp     The <code>MemoryStream</code> to write to
 *
 * @throws IOException
 */
 private void WritePhrase(Phrase phrase, MemoryStream outp)
 {
     outp.WriteByte(escape);
     outp.Write(paragraphDefaults, 0, paragraphDefaults.Length);
     if (inTable) {
         outp.WriteByte(escape);
         outp.Write(RtfCell.cellInTable, 0, RtfCell.cellInTable.Length);
     }
     foreach (Chunk ch in phrase.Chunks) {
         ch.Font = phrase.Font.Difference(ch.Font);
     }
     MemoryStream save = content;
     content = outp;
     phrase.Process(this);
     content = save;
 }