We are having performance issues when creating PDF document with supported HTML tags. Generating PDF with API only is 7 time quicker than building with HTML.
Please see example code, if ‘IsTrueTypeFontBold’ is true generation time is 7 times longer.
Is there any work scheduled to fix this problem?
We use v126.96.36.199 updating to v188.8.131.52 doesn’t make much difference (actually it takes slightly longer).
Aspose.Pdf.Generator.Text text = new Text(FormatText(value));
text.Margin.Top = 10;
TextInfo textInfo = new TextInfo();
textInfo.FontName = “Arial”;
textInfo.FontSize = 12F;
textInfo.IsTrueTypeFontBold = false;
text.IsHtmlTagSupported = supportHtml;
text.TextInfo = textInfo;
Hi! The problem is really with the HTML. Below is the sample code I used. When the property IsHtmlTagSupported is set to true, it takes 43 seconds and when it is set to false, it takes 0.5 second. We have reports in our application that are taking a minute or two and it is related to that. The problem is present in version 8.0 but everything is fine in version 6.4 (I know it’s really old but that’s what we were using before our upgrade to 8.0).
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-35357. We
will investigate this issue in details and will keep you updated on the status
of a correction. <o:p></o:p>
We apologize for your inconvenience.