ramji

ramji

  • NA
  • 38
  • 5k

creating PDF File from String

Nov 8 2015 12:22 PM
I have the below function .This function returns string .I want to create pdf file using this value.
 
private static string FromGzipMemoryStream(MemoryStream stream)
{
using (GZipStream zipStream = new GZipStream(stream, CompressionMode.Decompress))
using (StreamReader reader = new StreamReader(zipStream))
{
 return reader.ReadToEnd();
}
}
is it possible to create pdf file from string values.?.or we have to convert into bytes.?.how to create pdf file.
 
Please help.. 

Answers (3)