AddChunk() public method

public AddChunk ( PdfChunk chunk ) : void
chunk PdfChunk
return void
Exemplo n.º 1
0
 private void AddWaitingPhrase() {
     if (bidiLine == null && waitPhrase != null) {
         bidiLine = new BidiLine();
         foreach (Chunk ck in waitPhrase.Chunks) {
             bidiLine.AddChunk(new PdfChunk(ck, null));
         }
         waitPhrase = null;
     }
 }
Exemplo n.º 2
0
     /**
      * Method that changes a String with Arabic characters into a String in which the ligatures are made.
      * @param s	the original String
      * @param runDirection
      * @param arabicOptions
      * @return the String with the ligaturesc
      */
     public static String ProcessLTR(String s, int runDirection, int arabicOptions) {
 	    BidiLine bidi = new BidiLine();
 	    bidi.AddChunk(new PdfChunk(new Chunk(s), null));
 	    bidi.arabicOptions = arabicOptions;
 	    bidi.GetParagraph(runDirection);
 	    List<PdfChunk> arr = bidi.CreateArrayOfPdfChunks(0, bidi.totalTextLength - 1);
 	    StringBuilder sb = new StringBuilder();
 	    foreach (PdfChunk ck in arr) {
 		    sb.Append(ck.ToString());
 	    }
 	    return sb.ToString();
     }