Hi,
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 v7.7.0.0 updating to v8.0.0.0 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;
section.Paragraphs.Add(text);
Thanks,
Marcin
Hi Marcin,
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).
Hi Marcin,
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>I
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.
The issues you have found earlier (filed as PDFNEWNET-35357) have been fixed in Aspose.Pdf for .NET 8.3.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.