3
Answers

creating PDF File from String

ramji

ramji

8y
355
1
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)