itextsharp XMLWorkerHelper is very slow to convert the pdf
This post has NOT been accepted by the mailing list yet.
I want to convert html to pdf for many employees payslip, but when the XMLWorkerHelper.GetInstance().ParseXHtml(writer, document, ms, System.Text.Encoding.UTF8); line execute this take more time for execution. my code is shown below, please help me per pdf payslip it take more than 10seconds.
MemoryStream ms = new MemoryStream();
iTextSharp.text.Document document = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 10f, 10f, 50f, 20f);
string strBody = hdntblAll.Value;
MemoryStream memStream = new MemoryStream();
var output = new MemoryStream();
PdfWriter writer = PdfWriter.GetInstance(document, memStream);