Rangaraj jalla

Rangaraj jalla

  • NA
  • 342
  • 0

High qulity pdf create

Apr 1 2019 6:04 AM
Pdf genarated but pdf qulity missing. how to improve text qulity. 
 
string result = Convert.ToBase64String(byteArray);
byte[] decBytes1 = Convert.FromBase64String(result);
context.Response.Buffer = true;
context.Response.Charset = "";
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
if (fileName.Substring(fileName.IndexOf('.') + 1).ToLower() == "pdf")
{
context.Response.Buffer = true;
context.Response.Charset = "";
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
context.Response.ContentType = "application/pdf";
context.Response.BinaryWrite(decBytes1);
context.Response.Flush();
context.Response.End();
}

Answers (2)