Textbox value's (from database) font not displayed in PDF generated using Pechkin
protected void Button1_Click(object sender, EventArgs e){
string url = HttpContext.Current.Request.Url.AbsoluteUri;
var pechkin = Factory.Create(new GlobalConfig());
var pdf = pechkin.Convert(new ObjectConfig()
.SetLoadImages(true).SetZoomFactor(1.25)
.SetPrintBackground(true)
.SetScreenMediaType(true)
.SetCreateExternalLinks(true)
.SetPageUri(url));
//Return the PDF file
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", string.Format("attachment;filename=test.pdf; size={0}", pdf.Length));
Response.BinaryWrite(pdf);
Response.Flush();
Response.End();
}
This is the back end code for pdf generation. Textbox values taken from need to be displayed in Malayalam font but its not taking the font. These textbox are getting generated dynamically.