I am converting an HTML text string to pdf with the C#.net wrapper "NReco.PdfGenerator" for wkhtmltopdf on Windows Application. When I am converting html text which have Custom/Non-Unicode Fonts like "Kurti Dev 010" then wkhtmltipdf not generating same fonts pdf file. So PDF text can't be readable.
string dataText = "HTML TEXT DATA";
var margins = new PageMargins();
var htmlToPdf = new HtmlToPdfConverter();
margins.Top = 5;
htmlToPdf.Zoom = 1f;
margins.Bottom = 15;
margins.Left = 10;
margins.Right = 5;
htmlToPdf.Margins = margins;
htmlToPdf.Size = NReco.PdfGenerator.PageSize.A4;
htmlToPdf.Orientation = PageOrientation.Portrait;
htmlToPdf.GeneratePdf(dataText, null, FILEPATH);
What is the solution for it to generate PDF with same custom/Non-unicode fonts.