title: Save generated PDF file in azure
body: <p>I have a form in ASP.NET and in when I fill up the form in the last step it generates a PDF file. I used jsPDF. 
  What I want is that, the generated pdf file to be send (saved) in Azure storage, does anyone can help me?</p>
  
  <p>Thank you</p>
  
  <p>UPDATE: This is the code that I'm trying, it's working but it's extracting only the text, it doesn't save the pdf as it is:</p>
  
  <pre><code>var account = new CloudStorageAccount(new Microsoft.WindowsAzure.Storage.Auth.StorageCredentials("storageaccount", 
                      "accesskey"), true);
  var blobClient = account.CreateCloudBlobClient();
  var container = blobClient.GetContainerReference("folderpath");
  
  StringBuilder text = new StringBuilder();
  string filePath = "C:\\Users\\username\\Desktop\\toPDF\\testing PDFs\\test.pdf";
  
  if (File.Exists(filePath))
  {
       PdfReader pdfReader = new PdfReader(filePath);
  
       for (int page = 1; page &lt;= pdfReader.NumberOfPages; page++)
       {
           ITextExtractionStrategy strategy = new SimpleTextExtractionStrategy();
           string currentText = PdfTextExtractor.GetTextFromPage(pdfReader, page, strategy);
           currentText = Encoding.UTF8.GetString(ASCIIEncoding.Convert(Encoding.Default, Encoding.UTF8, Encoding.Default.GetBytes(currentText)));
           text.Append(currentText);
         }
         pdfReader.Close();
  
         using (MemoryStream ms = new MemoryStream())
         {
         using (var doc = new iTextSharp.text.Document())
         {
               PdfWriter writer = PdfWriter.GetInstance(doc, ms);
               doc.Open();
               doc.Add(new Paragraph(text.ToString()));
         }
         var byteArray = ms.ToArray();
         var blobName = "test.pdf";
         var blob = container.GetBlockBlobReference(blobName);
         blob.Properties.ContentType = "application/pdf";
         blob.UploadFromByteArray(byteArray, 0, byteArray.Length);
         }
      } 
  </code></pre>