title: How to use UTF-8 encoding in iTextSharp PDF Stamper?
body: <p>I want to use UTF-8 instead of CP1250 to display national characters. I found AddParagraph method which supports UTF-8 but I couldn't find any stamper example.</p>
  
  <p>This is the code snippet with CP1250:</p>
  
  <pre><code>        PdfReader reader = new PdfReader(templatePath);
          byte[] bytes;
          using (MemoryStream ms = new MemoryStream())
          {
              using (PdfStamper stamper = new PdfStamper(reader, ms))
              {
                  PdfContentByte cb = stamper.GetOverContent(1);
  
                  BaseFont bf = BaseFont.CreateFont(
                     BaseFont.COURIER_BOLD, 
                     BaseFont.CP1250, 
                     true);
  
                  //Begin text command
                  cb.BeginText();
                  //Set the font information                        
                  cb.SetFontAndSize(bf,12f);
  
                  //Position the cursor for drawing
                  cb.MoveText(field.X, field.Y);
                  //Write some text
                  cb.ShowText(field.Text);
                  //End text command
                  cb.EndText();
  
                  //Flush the PdfStamper's buffer
                  stamper.Close();
                  //Get the raw bytes of the PDF
                  bytes = ms.ToArray();
              }
          }
  </code></pre>
  
  <p>How can I use UTF-8?</p>