title: iTextSharp .NET PDF - unable to change PDF Producer
body: <p>I am using iTextSharp product to change the PDF properties as follows. 
  I am unable to change the "PDF Producer" property at all. Please suggest, where am i getting wrong. </p>
  
  <p>The code line 
  <strong>info["Producer"] = "My producer";</strong> </p>
  
  <p>is not working as it should be.</p>
  
  <pre><code>      string sourcePath = tbPath.Text;
                  IList&lt;string&gt; dirs = null;
                  string pdfName = string.Empty;
                  string OutputPath = string.Empty;
  
                  DirectoryInfo di = new DirectoryInfo(sourcePath);
                  DirectoryInfo dInfo = Directory.CreateDirectory(sourcePath + "\\" + "TempDir");
  
                  OutputPath = Path.Combine(sourcePath,"TempDir");          
  
                  dirs = Directory.GetFiles(di.FullName, "*.pdf").ToList();
  
                  for (int i = 0; i &lt;= dirs.Count - 1; i++)
                  {
                      try
                      {
                          PdfReader pdfReader = new PdfReader(dirs[i]);
                          using (FileStream fileStream = new FileStream(Path.Combine(OutputPath, Path.GetFileName(dirs[i])),
                                                            FileMode.Create,
                                                            FileAccess.Write))
                          {                                         
  
                             PdfStamper pdfStamper = new PdfStamper(pdfReader, fileStream);
  
                              Dictionary&lt;string, string&gt; info = pdfReader.Info;
                              info["Title"] = "";
                              info["Author"] = "";
                              info["Producer"] = "My producer";   ////THIS IS NOT WORKING..                                                                
  
                              pdfStamper.MoreInfo = info;    
                              pdfStamper.Close();         
  pdfReader.Close();                                                        
  
                          }
  </code></pre>