You must Sign In to post a response.
  • Category: HTML

    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.
  • #760616
    Hello Anuji,

    The font which is not installed in the system will not to that system. For that you should have installed malayalam font into the system. than try to achieve your task.

    Hope you understood.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #760651
    Hi

    In which format the font is generated using pechkin.

    Which language you want to display?
    Make sure you had installed the necessary font in the system.

    Regards

    Sridhar Thota.
    "Poverty means Poverty of knowledge"

    Sridhar Thota.
    Editor: DNS Forum.


  • Sign In to post your comments