Aspose.Pdf.Kit for.Net to Aspose.Pdf for.NET : decrease performance?

Hello Elizabeth,


Thanks for your patience.

Our development team is working hard to improve the performance of Aspose.Pdf for .NET and we have made significant progress while improving the performance of PDF form filling in latest release version of Aspose.Pdf for .NET 6.7.0. Please note that during our testing, we have observed that filling of attached PDF form is taking 4 seconds to complete the job, but we are still struggling to further improve the performance. Please try using the latest release version and as soon as the performance issue is completely resolved, we would be more than happy to update you with the status of correction.
[C#]

FileStream inPdfStream = null;

FileStream outputStream = null;

PdfFileMend mendor = null;

FormattedText ft = null;

string inputFile = @"D:\pdftest\Lettre_type_Resiliation.pdf";

string outputFile = @"D:\pdftest\Lettre_type_Resiliation-Updated.pdf";

int i;

bool errorPdf = false;

string strAddress1 = "strAddress1";

string strAddress2 = "strAddress2";

string strAddress3 = "strAddress3";

MemoryStream memoryStream = null;

inPdfStream = new FileStream(inputFile, FileMode.Open);

outputStream = new FileStream(outputFile, FileMode.Create);

//Aspose.Pdf.License license = new License();

//license.SetLicense(TestSettings.GetInputFile(Aspose.Pdf.lic")

mendor = new PdfFileMend(inPdfStream, outputStream);

ft = new FormattedText("UserSex UserName", System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 123.5f, 772.5f);

ft = new FormattedText("City", System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman,

EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 331f, 772.5f);

ft = new FormattedText(DateTime.Now.ToString("dd/MM/yyyy"), System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 460f, 772.5f);

ft = new FormattedText(strAddress1, System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman,

EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 112f, 749.25f);

ft = new FormattedText(strAddress2, System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman,

EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 64f, 726.25f);

ft = new FormattedText(strAddress3, System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 64f, 703.5f);

ft = new FormattedText("CarrierName", System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman,

EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 369f, 726.25f);

ft = new FormattedText(strAddress1, System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman,

EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 413f, 703.5f);

ft = new FormattedText(strAddress2, System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 303.75f, 680.5f);

ft = new FormattedText(strAddress3, System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 303.75f, 657.25f);

ft = new FormattedText("UserContract", System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 121.75f, 680.5f);

ft = new FormattedText("CarrierType", System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 10);

mendor.AddText(ft, 1, 151.25f, 657.25f);

string strDate = "27/07/2011";

ft = new FormattedText(strDate.Split('/')[0], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 268.75f, 509f);

ft = new FormattedText(strDate.Split('/')[1], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 295.5f, 509f);

ft = new FormattedText(strDate.Split('/')[2], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 318.5f, 509f);

ft = new FormattedText(strDate.Split('/')[0], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 227f, 448.5f);

ft = new FormattedText(strDate.Split('/')[1], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 251.75f, 448.5f);

ft = new FormattedText(strDate.Split('/')[2], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 273.75f, 448.5f);

ft = new FormattedText(strDate.Split('/')[0], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 132, 399);

ft = new FormattedText(strDate.Split('/')[1], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 155, 399);

ft = new FormattedText(strDate.Split('/')[2], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 177, 399);

ft = new FormattedText(strDate.Split('/')[0], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 162.5f, 151.5f);

ft = new FormattedText(strDate.Split('/')[1], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 188.25f, 151.5f);

ft = new FormattedText(strDate.Split('/')[2], System.Drawing.Color.Black, Aspose.Pdf.Facades.FontStyle.TimesRoman, EncodingType.Winansi, true, 9);

mendor.AddText(ft, 1, 213f, 151.5f);

mendor.Close();

outputStream.Close();

inPdfStream.Close();

Hello;

We updated to Aspose.Pdf v 6.7.0 as recommended and noticed that there was a performance improvement, however it was not sufficient for our needs. We’ve retrofitted our project back to Aspose.Pdf.Kit v 4.3.0 for the time being and await an update on this.
Just wanted to provide that information; thanks very much for your time.
Elizabeth

Hi Elizbeth,

Thanks for your feedback, kindly try it using the latest release version Aspose.Pdf for .NET v6.8. However, our development team is still working hard to improve the performance of Aspose.Pdf for .NET. As soon as we get required information, We would be more than happy to update you with the status of correciton. Please be patient and spare us little time. We are really sorry for the delay and inconvenience.

Thanks & Regards,

The issues you have found earlier (filed as PDFNEWNET-29975) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(3)

Hello;

Unfortunately with Aspose.PDF 7.0.0 we are still seeing very long times on our distributed system to produce packages of filled PDFs. What information do you need from me to be able to recreate and research this?
Thanks,
Elizabeth

Hello Elizabeth,


Thanks for your patience and sorry for replying you late.

I am testing this scenario with the latest release version of Aspose.Pdf for .NET and will share my findings shortly. Please be patient and spare us little time. We are sorry for your inconvenience.

Hello Elizabeth,

Thanks for your patience.

I have tested the scenario using latest HotFix of
Aspose.Pdf for .NET 7.0.1 and as per my observations, the PdfFileMend is taking 1.3 Seconds to add Text inside the PDF document. This issue was previously discussed over 322554 link. Can you please try using the latest hotfix and in case you still face the same problem related to performance, please share some details regarding your working environment.

We are sorry for your inconvenience.

PS, I have tested the scenario in VisualStudio 2010 project on Windows7 X64 machine where I have Intel Core i5 2.8 GHz processor with 8GB of RAM.