title: How to convert from string into pdf?
body: <p>Currently I'm using Restful service in asp.net c# and the following is the <strong><code>pdf</code></strong> string return that I get, I would like to convert it and save it as a .<strong><code>pdf</code></strong> file. How should I do it?</p>
  
  <pre><code>static string HttpGet(string url)
          {
              HttpWebRequest req = WebRequest.Create(url)
                                   as HttpWebRequest;
              string result = null;
              using (HttpWebResponse resp = req.GetResponse()
                                            as HttpWebResponse)
              {
  
  
                  StreamReader reader =
                      new StreamReader(resp.GetResponseStream());
                  result = reader.ReadToEnd();
              }
              return result;
          }
  
  /****************************** result returned ******************************/ 
  %PDF-1.3
  %����
  3 0 obj
  &lt;&lt;
  /Linearized 1
  /O 5
  /H [ 526 186 ]
  /L 47163
  /E 46840
  /N 1
  /T 47053
  &gt;&gt;
  endobj                          
  xref
  3 11
  0000000016 00000 n
  0000000436 00000 n
  0000000712 00000 n
  0000000957 00000 n
  0000001056 00000 n
  0000001078 00000 n
  0000046475 00000 n
  0000046502 00000 n
  0000046611 00000 n
  0000046725 00000 n
  0000000526 00000 n
  trailer
  &lt;&lt;
  /Size 14
  /Info 1 0 R
  /Root 4 0 R
  /Prev 47044
  &gt;&gt;
  startxref
  0
  %%EOF
  4 0 obj
  &lt;&lt;
  /Type /Catalog
  /Pages 2 0 R
  &gt;&gt;
  endobj
  
  13 0 obj
  &lt;&lt;
  /Length 104
  /P 0
  /S 46
  &gt;&gt;                   
  stream
  </code></pre>